Skip to content

Don't call deprecated oto.Player's method #15

Don't call deprecated oto.Player's method

Don't call deprecated oto.Player's method #15

name: Static analysis
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Download deps
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update && sudo apt-get install -y libasound2-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev libgl-dev libglx-dev
fi
shell: bash
- name: Install analysis tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Vet
run: go vet ./cmd/... ./lib/... ./ui/...
- name: Goimports
run: test -z "$(goimports -e -d . | tee /dev/stderr)"
- name: Staticcheck
run: staticcheck ./cmd/... ./lib/... ./ui/...