Skip to content

Commit

Permalink
Merge pull request #214 from markusressel/improvement/lint_workflow
Browse files Browse the repository at this point in the history
run tests after linting to avoid cache issues
  • Loading branch information
markusressel authored Mar 20, 2023
2 parents 2926ab4 + db732f1 commit 6e9e024
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 6e9e024

Please sign in to comment.