Merge pull request #10 from leighmacdonald/steam32 #48
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: Build Workflow | ||
on: | ||
push: | ||
env: | ||
STEAM_TOKEN: ${{secrets.STEAM_TOKEN}} | ||
jobs: | ||
lint: | ||
name: Linter | ||
environment: master | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
- name: Install Analyzer Dependencies | ||
run: make check_deps | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: 'latest' | ||
staticcheck: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
- run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
- uses: actions/checkout@v4 | ||
- run: make static | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Test | ||
environment: master | ||
needs: [lint, staticheck] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 'stable' | ||
cache: true | ||
- name: Test | ||
run: make test |