-
Notifications
You must be signed in to change notification settings - Fork 20
62 lines (58 loc) · 1.62 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Arkeo CI
run-name: ${{ github.actor }} is testing a code change 🚀
on: [push]
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: 1.20.x
# cache: true
- name: Compile Protobuf
run: |
make proto-gen
- name: Lint code
run: |
make lint-ci
- name: Unit Tests
run: |
sudo rm -rf vue
make test
regression-test:
name: Regression Test
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: 1.20.x
# cache: true
- name: Compile Protobuf
run: |
make proto-gen
- name: Install Compose
uses: ndeloof/[email protected]
with:
version: v2.15.1 # defaults to 'latest'
legacy: true # will also install in PATH as `docker-compose`
- run: docker-compose --version
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Regression Tests
run: |
make test-regression-ci