Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: ci
2
3 on:
4 pull_request:
5 branches: [master]
6 push:
7 branches: [master]
8
9 jobs:
10 unit:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v2
14 - uses: actions/setup-go@v2
15 with: {go-version: ^1}
16 - run: make unit
17 e2e:
18 runs-on: ubuntu-latest
19 steps:
20 - uses: actions/checkout@v2
21 - uses: actions/setup-go@v2
22 with: {go-version: ^1}
23 - run: make e2e
24 generate:
25 runs-on: ubuntu-latest
26 steps:
27 - uses: actions/checkout@v2
28 - uses: actions/setup-go@v2
29 with: {go-version: ^1}
30 - run: make generate
31 - name: Check if there's any changes
32 if: success()
33 run: |
34 modified="$(git ls-files --modified)"
35 untracked="$(git ls-files --exclude-standard --others)"
36 if [ -n "$modified" ] || [ -n "$untracked" ]; then
37 echo "Modified:"
38 echo "$modified"
39 echo
40 echo "Untracked:"
41 echo "$untracked"
42 exit 1
43 fi
44 exit 0