-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 941 Bytes
/
test.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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache-dependency-path: src/go.sum
- name: Install dependencies
run: |
sudo apt install libasound2-dev
- name: Pull common linter configs
run: wget -O .golangci.yml https://raw.githubusercontent.com/JenswBE/setup/main/programming_configs/golang/.golangci.yml
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
working-directory: src
args: >
--disable errorlint,goerr113,nestif,wrapcheck
- name: Test exhaustive use of case statements
working-directory: src
run: |
go install github.com/nishanths/exhaustive/...@latest
exhaustive ./...