mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-06-01 11:56:07 +00:00
38 lines
746 B
YAML
38 lines
746 B
YAML
kind: 'pipeline'
|
|
type: 'docker'
|
|
name: pomme-pipeline
|
|
|
|
|
|
steps:
|
|
- name: lint-frontend
|
|
image: guergeiro/pnpm
|
|
commands:
|
|
- cd frontend && npm i
|
|
- cd .. && make frontend
|
|
- make lint-frontend
|
|
- name: lint-backend
|
|
image: golangci/golangci-lint
|
|
commands:
|
|
- make lint-backend
|
|
- name: cache
|
|
image: golang:1.20
|
|
commands:
|
|
- go mod tidy && go mod vendor
|
|
depends_on:
|
|
- 'lint-backend'
|
|
- 'lint-frontend'
|
|
volumes:
|
|
- name: 'cache'
|
|
- path: '/go'
|
|
- name: 'test'
|
|
image: golang:1.20
|
|
commands:
|
|
- cp config.sample.yaml ./internal/api/config.yaml
|
|
- 'make test-backend'
|
|
depends_on:
|
|
- 'cache'
|
|
volumes:
|
|
- name: 'cache'
|
|
- path: '/go'
|
|
|