-
Notifications
You must be signed in to change notification settings - Fork 186
53 lines (51 loc) · 1.49 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
name: ci
on:
push:
branches: ['main']
pull_request:
jobs:
unit_test:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.21
- name: Check out source code
uses: actions/checkout@v1
- run: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- run: make deps
- run: make verify_swagger_nochange
- run: make ci
- run: make benchmark
- uses: codecov/codecov-action@v2
ui_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Check out source code
uses: actions/checkout@v1
- run: cd browser/flagr-ui && npm install
- run: cd browser/flagr-ui && npm run lint
integration_test:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v1
- run: cd integration_tests && make build-image
- run: cd integration_tests && make down
- run: cd integration_tests && make up
- run: cd integration_tests && make test
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash