Skip to content

Commit

Permalink
reordered CI and changed staticcheck version
Browse files Browse the repository at this point in the history
  • Loading branch information
rjkroege committed Feb 11, 2025
1 parent 4260cb3 commit 6bf7167
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/edwood.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,36 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Run Go tests
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...

- name: Build with duitdraw on non-windows systems
if: matrix.os != 'windows-latest'
run: go get -tags 'duitdraw mux9p' -t -v ./...
- name: Check gofmt
run: diff -u <(echo -n) <(gofmt -d -s .)
shell: bash

- name: Run go vet
run: go vet .

- name: Install staticcheck and misspell
run: |
go install honnef.co/go/tools/cmd/staticcheck@v0.4.2
go install honnef.co/go/tools/cmd/staticcheck@v0.5.1
go install github.com/client9/misspell/cmd/[email protected]
working-directory: /
shell: bash

- name: Check if 'go get' modified go.mod file
run: git diff --exit-code

- name: Run staticcheck
run: staticcheck -checks inherit,-U1000,-SA4003 ./...

- name: Run misspell
run: misspell -error .

- name: Check gofmt
run: diff -u <(echo -n) <(gofmt -d -s .)
shell: bash
- name: Run Go tests
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...

- name: Build with duitdraw on non-windows systems
if: matrix.os != 'windows-latest'
run: go get -tags 'duitdraw mux9p' -t -v ./...


- name: Check if 'go get' modified go.mod file
run: git diff --exit-code

- name: Upload coverage to codecov
# codecov can't seem to combine reports from multiple OSes correctly
Expand Down

0 comments on commit 6bf7167

Please sign in to comment.