-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add staticcheck linting * fix: Fix workflow syntax error * fix: Fix lint workflow * fix: Fix go version * yeah I don't know * fix: Update staticcheck * feat: Update README
- Loading branch information
Showing
4 changed files
with
74 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: PR Checks | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: extractions/setup-just@v1 | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23.1' | ||
|
||
- name: Build | ||
run: just build | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: extractions/setup-just@v1 | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23.1' | ||
|
||
- name: Install staticcheck | ||
uses: dominikh/[email protected] | ||
with: | ||
version: '2024.1.1' | ||
install-go: false | ||
min-go-version: '1.23.1' | ||
|
||
- name: Run lint | ||
run: just lint | ||
|
||
unit-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: extractions/setup-just@v1 | ||
|
||
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23.1' | ||
|
||
- name: Unit tests | ||
run: go test ./... |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,6 @@ build: | |
go build -ldflags="-s -w" -o "build/$output" . | ||
done | ||
done | ||
|
||
lint: | ||
staticcheck ./... |