Debian Codegraph @

.github/workflows/test.yml

raw
1 ---
2 name: Test
3
4 on:
5 push:
6 branches: [master]
7 pull_request:
8 branches: [master]
9
10 jobs:
11 test:
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 go-version: ['1.19.x', '1.20.x', '1.21.x', '1.22.x', '1.23.x', '1.24.x']
16 steps:
17 - uses: actions/checkout@v5
18
19 - uses: actions/cache@v4
20 name: Cache unicode
21 with:
22 path: ${{ github.workspace }}/internal/gen/gentables/DATA
23 key: ${{ runner.os }}-data-${{ hashFiles('${{ github.workspace }}/**/*.txt') }}
24
25 # Cache richgo and golangci-lint
26 - uses: actions/cache@v4
27 name: Cache bin
28 with:
29 path: bin
30 # The Makefile sets the version of richgo and golangci-lint
31 key: ${{ runner.os }}-bin-${{ hashFiles('${{ github.workspace }}/common.mk') }}
32
33 - uses: actions/setup-go@v6
34 name: Setup Go ${{ matrix.go-version }}
35 with:
36 go-version: ${{ matrix.go-version }}
37
38 - name: Test
39 run: make ci --jobs=$(nproc)
40
41 - name: Test Skipped
42 run: make testskipped