...
1name: Test
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9jobs:
10
11 test:
12 runs-on: ubuntu-latest
13 strategy:
14 fail-fast: false
15 matrix:
16 go-version: [1.16.x, 1.17.x, 1.18.0-beta1]
17 race: ["-race", ""]
18
19 steps:
20
21 - name: Set up Go
22 uses: actions/setup-go@v2
23 with:
24 stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")'
25 go-version: ${{ matrix.go-version }}
26
27 - name: Checkout
28 uses: actions/checkout@v2
29
30 - name: Install dbus
31 run: sudo apt-get install dbus dbus-x11
32
33 - name: Build
34 run: go build ${{ matrix.race }} -v ./...
35
36 - name: Test
37 run: go test ${{ matrix.race }} -v ./...
38
39 codespell:
40 runs-on: ubuntu-20.04
41 steps:
42 - uses: actions/checkout@v2
43 - name: install deps
44 # Version of codespell bundled with Ubuntu is way old, so use pip.
45 run: pip install codespell
46 - name: run codespell
47 run: codespell
View as plain text