-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (36 loc) · 978 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
fixtures:
name: fixtures-up-to-date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
install_url: https://releases.nixos.org/nix/nix-2.12.1/install
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Build fixtures
run: bash -c 'cd test/testdata && ./build-fixtures.go'
- name: Diff fixtures
run: git diff --exit-code test/testdata
build:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
go: [ '1.20', '1.21' ]
runs-on: ${{ matrix.os }}
name: Build (Go ${{ matrix.go }}, OS ${{ matrix.os }})
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: go test -race -bench='.+' -v ./...
run: go test -race -bench='.+' -v ./...