Skip to content

Merge pull request #191 from JenswBE/dependabot/npm_and_yarn/src/simp… #483

Merge pull request #191 from JenswBE/dependabot/npm_and_yarn/src/simp…

Merge pull request #191 from JenswBE/dependabot/npm_and_yarn/src/simp… #483

Workflow file for this run

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@v6
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 ./...