quantum-inspiration / files / .fw-ci.yml
.fw-ci.yml
e58f6fff 2023-09-06 Pavel Safronov | 1 | image: golang:latest |
| 2 | ||
| 3 | stages: | |
| 4 | - build-and-test | |
0c14bc4f 2023-09-06 Pavel Safronov | 5 | - run-and-deploy |
e58f6fff 2023-09-06 Pavel Safronov | 6 | |
| 7 | before_script: | |
| 8 | - go version | |
| 9 | - make --version | |
| 10 | ||
| 11 | build-job: | |
| 12 | stage: build-and-test | |
| 13 | script: | |
| 14 | - make build | |
| 15 | - make test | |
| 16 | ||
0c14bc4f 2023-09-06 Pavel Safronov | 17 | pages: |
| 18 | stage: run-and-deploy | |
e58f6fff 2023-09-06 Pavel Safronov | 19 | script: |
| 20 | - make run | |
0c14bc4f 2023-09-06 Pavel Safronov | 21 | artifacts: |
| 22 | paths: | |
| 23 | - public | |
| 24 | only: | |
| 25 | - main |