From 5e64f3bef24fe14b745f7e1ad7e4a613489b7c63 Mon Sep 17 00:00:00 2001 From: Markus Ressel Date: Mon, 20 Mar 2023 02:38:43 +0100 Subject: [PATCH 1/2] run tests after linting to avoid cache issues --- .github/workflows/go.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 719b4ed..09ef0ae 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,9 +24,6 @@ jobs: with: go-version: '^1.18' - - name: Test - run: make test - - name: Run golangci-lint uses: golangci/golangci-lint-action@v3.4.0 with: @@ -48,11 +45,14 @@ 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 From db732f11a7994a5c9ffdd6a736f5892fb21af3bc Mon Sep 17 00:00:00 2001 From: Markus Ressel Date: Mon, 20 Mar 2023 02:42:44 +0100 Subject: [PATCH 2/2] fix typo --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 09ef0ae..a85df0e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -56,14 +56,14 @@ jobs: - 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"