Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: ci
2 on: [push, pull_request]
3 jobs:
4 test-build:
5 strategy:
6 matrix:
7 go-version: [1.17.x, 1.16.x, 1.15.x, 1.14.x, 1.13.x, 1.12.x]
8 os: [ubuntu-20.04, macos-latest, windows-latest]
9 runs-on: ${{ matrix.os }}
10 steps:
11 - name: Install Go
12 uses: actions/setup-go@v2
13 with:
14 go-version: ${{ matrix.go-version }}
15 - name: Checkout code
16 uses: actions/checkout@v2
17 with:
18 fetch-depth: 0
19 - name: Test
20 run: go test -race -v -timeout 2m ./...
21 - name: Build lib
22 run: go build
23 - name: Build cmd
24 run: go build
25 working-directory: ./cmd/gotail