Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run tests after linting to avoid cache issues #214

Merged
merged 2 commits into from
Mar 20, 2023
Merged
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
12 changes: 6 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
with:
go-version: '^1.18'

- name: Test
run: make test

- name: Run golangci-lint
uses: golangci/[email protected]
with:
Expand All @@ -48,22 +45,25 @@ jobs:
# skip-cache: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
skip-pkg-cache: true
skip-pkg-cache: false

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true

- name: Test
run: make test

- name: Build
run: make build

- name: Genereat build files
- name: Generate build files
run: |
GOOS="linux"
GOARCH="amd64"
filename="$GOOS-$GOARCH"
go build -o ./dist/fan2go-$filename -buildmode "exe" main.go

- name: Genereat build files
- name: Generate build files
run: |
GOOS="linux"
GOARCH="arm64"
Expand Down