Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Add staticcheck job to CI. #6

Merged
merged 5 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:

build:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -24,5 +24,10 @@ jobs:
- name: Build
run: go build -v ./...

- name: Staticcheck
uses: dominikh/[email protected]
with:
version: "2022.1.3"

- name: Test
run: go test -v ./...
run: go test -v -race ./...
2 changes: 1 addition & 1 deletion nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func ToggleNAT(toggle bool) error {
}

f := t.AppendUnique
if toggle == Off {
if !toggle {
f = t.DeleteIfExists
}

Expand Down
Loading