Various QOL changes. #110
Workflow file for this run
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
on: pull_request | |
jobs: | |
arrange: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.16' | |
- run: go install github.com/jdeflander/[email protected] | |
working-directory: ${{ runner.temp }} | |
- run: test -z "$(goarrange run -r -d)" | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: golangci/golangci-lint-action@v4 | |
with: | |
version: 'v1.56.2' | |
args: -E misspell,godot,whitespace | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.16' | |
- run: go test -v ./... | |
tidy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.16' | |
- run: go mod tidy | |
- run: git diff --quiet go.mod go.sum |