mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-05 01:04:12 +00:00
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
kind: 'pipeline'
|
|
type: 'docker'
|
|
name: pomme-pipeline
|
|
|
|
|
|
steps:
|
|
- name: cache-frontend
|
|
image: node:18
|
|
commands:
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
- pnpm -F frontend i
|
|
- name: cache-backend
|
|
image: golang:1.20
|
|
commands:
|
|
- go mod tidy && go mod vendor
|
|
volumes:
|
|
- name: 'cache'
|
|
- path: '/go'
|
|
|
|
- name: lint-frontend
|
|
image: node:18
|
|
commands:
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
- make lint-frontend
|
|
depends_on:
|
|
- 'cache-frontend'
|
|
- name: lint-backend
|
|
image: golangci/golangci-lint
|
|
commands:
|
|
- make lint-backend
|
|
depends_on:
|
|
- 'cache-backend'
|
|
|
|
- name: test-frontend
|
|
image: node:18
|
|
commands:
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
- pnpm -F frontend test:unit
|
|
depends_on:
|
|
- 'lint-frontend'
|
|
- name: test-backend
|
|
image: golang:1.20
|
|
commands:
|
|
- cp config.sample.yaml ./internal/api/config.yaml
|
|
- make test-backend
|
|
depends_on:
|
|
- 'lint-backend'
|
|
volumes:
|
|
- name: 'cache'
|
|
- path: '/go'
|
|
|