Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: test
2
3 on:
4 push:
5 pull_request:
6
7 jobs:
8 build:
9 name: Build and Test
10 runs-on: ubuntu-22.04
11
12 strategy:
13 fail-fast: false
14 matrix:
15 go-version: [1.18, 1.24, 'stable']
16
17 steps:
18 - name: Check out code
19 uses: actions/checkout@v4
20
21 - name: Set up Go
22 uses: actions/setup-go@v5
23 with:
24 go-version: ${{ matrix.go-version }}
25
26 - name: Build
27 run: |
28 make
29
30 - name: Run tests
31 run: |
32 make test
33
34 - name: Create release tarball
35 if: startsWith(github.ref, 'refs/tags/')
36 run: |
37 make release
38
39 - uses: actions/upload-artifact@v4
40 if: startsWith(github.ref, 'refs/tags/')
41 with:
42 name: release-${{ matrix.go-version }}
43 path: dist/*