Debian Codegraph @

.github/workflows/build.yml

raw
1 name: build
2
3 on: [push, pull_request]
4
5 jobs:
6 test:
7 runs-on: ubuntu-latest
8 steps:
9 - uses: actions/checkout@v4
10 with:
11 fetch-depth: 0
12 - uses: actions/setup-go@v5
13 with:
14 go-version: ^1
15 check-latest: true
16 - run: go test -cover -race -failfast ./...
17 example:
18 runs-on: ubuntu-latest
19 defaults:
20 run:
21 working-directory: ./_examples
22 steps:
23 - uses: actions/checkout@v4
24 with:
25 fetch-depth: 0
26 - uses: actions/setup-go@v5
27 with:
28 go-version: ^1
29 check-latest: true
30 cache: true
31 - run: go run .