30 lines
629 B
YAML
30 lines
629 B
YAML
workflow:
|
|
rules:
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
|
|
when: never
|
|
- if: '$CI_PIPELINE_SOURCE == "push"'
|
|
|
|
stages:
|
|
- test
|
|
|
|
server:
|
|
stage: test
|
|
# The Debian image includes the C compiler needed by Go's race detector.
|
|
image: golang:1.27.2
|
|
script:
|
|
- cd server
|
|
- go vet ./...
|
|
- go test -race ./...
|
|
|
|
webapp:
|
|
stage: test
|
|
image: node:24
|
|
before_script:
|
|
- npm install --global pnpm@10.28.2
|
|
- cd webapp
|
|
- pnpm install --frozen-lockfile
|
|
script:
|
|
- pnpm check
|
|
- pnpm test
|