Debian Codegraph @

.github/workflows/go.yml

raw
1 name: Go
2 on:
3 push:
4 branches:
5 - master
6 pull_request:
7 jobs:
8 lint:
9 name: lint
10 runs-on: ubuntu-latest
11 steps:
12 - name: checkout
13 uses: actions/checkout@v4
14 - name: setup Go
15 uses: actions/setup-go@v4
16 with:
17 go-version: "1.24"
18 - name: run linters
19 run: |
20 make lint
21
22 race-test:
23 name: Test with -race
24 strategy:
25 matrix:
26 os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
27 go-version: [ "1.21", "1.22", "1.23", "1.24" ]
28 runs-on: ${{ matrix.os }}
29 steps:
30 - name: checkout
31 uses: actions/checkout@v4
32 - name: setup Go ${{ matrix.go-version }}
33 uses: actions/setup-go@v4
34 with:
35 go-version: ${{ matrix.go-version }}
36 - name: test
37 run: |
38 make test
39
40 i386-test:
41 name: Test in i386
42 strategy:
43 matrix:
44 os: [ "ubuntu-latest", "windows-latest" ]
45 go-version: [ "1.21", "1.22", "1.23", "1.24" ]
46 runs-on: ${{ matrix.os }}
47 env:
48 GOARCH: "386"
49 steps:
50 - name: checkout
51 uses: actions/checkout@v4
52 - name: setup Go ${{ matrix.go-version }}
53 uses: actions/setup-go@v4
54 with:
55 go-version: ${{ matrix.go-version }}
56 - name: test
57 run: |
58 make simple-test
59
60 fuzz:
61 name: Fuzzing Test
62 runs-on: ubuntu-latest
63 steps:
64 - name: checkout
65 uses: actions/checkout@v4
66 - name: setup Go
67 uses: actions/setup-go@v4
68 with:
69 go-version: "1.24"
70 - name: run
71 run: |
72 make fuzz
73
74 ycat:
75 name: ycat
76 runs-on: ubuntu-latest
77 steps:
78 - name: checkout
79 uses: actions/checkout@v4
80 - name: setup Go
81 uses: actions/setup-go@v4
82 with:
83 go-version: "1.24"
84 - name: build
85 run: |
86 make ycat/build
87 - name: run
88 run: |
89 ./bin/ycat .github/workflows/go.yml
90
91 page:
92 name: page
93 runs-on: ubuntu-latest
94 steps:
95 - name: checkout
96 uses: actions/checkout@v4
97 - name: setup Node
98 uses: actions/setup-node@v4
99 with:
100 node-version: 20
101 cache: 'npm'
102 cache-dependency-path: docs/playground/package-lock.json
103 - name: install dependencies
104 run: make -C ./docs/playground deps
105 - name: build
106 run: make -C ./docs/playground build
107
108 coverage:
109 name: Coverage
110 runs-on: ubuntu-latest
111 steps:
112 - name: checkout
113 uses: actions/checkout@v4
114 - name: setup Go
115 uses: actions/setup-go@v4
116 with:
117 go-version: "1.24"
118 - name: measure coverage
119 run: |
120 make cover
121 - uses: codecov/codecov-action@v4
122 with:
123 fail_ci_if_error: true
124 verbose: true
125 token: ${{ secrets.CODECOV_TOKEN }}