Merge pull request #197 from JenswBE/dependabot/npm_and_yarn/src/simp… #504
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.23" | |
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 ./... |