Debian Codegraph @

.github/workflows/ci-push.yml

raw symbols SCIP
1 name: Build & Test
2
3 on:
4 # disable integration test run for breaking changes adoption
5 push:
6 branches: [ "master" ]
7
8 jobs:
9 lint:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v6
13 - name: Set up Go
14 uses: actions/setup-go@v6
15 with:
16 go-version: '1.18'
17 - name: Do format
18 run: |
19 go install golang.org/x/tools/cmd/[email protected]
20 ./build.sh format
21 git status
22 - name: Check format
23 run: |
24 if [[ $(git status --porcelain) ]]; then
25 echo "Error: Please format files via ./build.sh format first ";
26 echo "Found not format files:"
27 git status --porcelain
28 exit 1;
29 fi
30
31 build-ubuntu:
32 runs-on: ubuntu-latest
33 needs: [ lint ]
34 steps:
35 - uses: actions/checkout@v6
36 - name: Set up Go
37 uses: actions/setup-go@v6
38 with:
39 go-version: '1.18'
40
41 - name: Test
42 run: go test -v ./...
43
44 build-windows:
45 needs: [ lint ]
46 runs-on: windows-latest
47 steps:
48 - uses: actions/checkout@v6
49 - name: Set up Go
50 uses: actions/setup-go@v6
51 with:
52 go-version: '1.18'
53
54 - name: Test
55 run: go test -v ./...
56
57 # disable integration test run for breaking changes adoption
58 # integration-test:
59 # needs: [ build-ubuntu, build-windows ]
60 # uses: go-echarts/go-echarts-pipeline/.github/workflows/integration.yml@main