From 04e7f949c1bdf486a210bf5b0ff70f4cd7e57b46 Mon Sep 17 00:00:00 2001 From: Dominik Date: Fri, 5 Jun 2026 17:53:08 +0200 Subject: [PATCH] fix(languages): gitea runner input bug fix --- .github/workflows/languages-go-fmt.yml | 4 ++-- .github/workflows/languages-go-goreleaser-check.yml | 4 ++-- .github/workflows/languages-go-goreleaser.yml | 2 +- .github/workflows/languages-go-security.yml | 2 +- .github/workflows/languages-go-test.yml | 12 ++---------- 5 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/languages-go-fmt.yml b/.github/workflows/languages-go-fmt.yml index 6b0915a..d6ce035 100644 --- a/.github/workflows/languages-go-fmt.yml +++ b/.github/workflows/languages-go-fmt.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: go.mod cache: true - name: Check formatting @@ -45,7 +45,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: go.mod cache: true - name: go vet diff --git a/.github/workflows/languages-go-goreleaser-check.yml b/.github/workflows/languages-go-goreleaser-check.yml index 8d48707..5a1e6d2 100644 --- a/.github/workflows/languages-go-goreleaser-check.yml +++ b/.github/workflows/languages-go-goreleaser-check.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: go.mod cache: true - name: Validate .goreleaser.yaml @@ -43,7 +43,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: go.mod cache: true - name: Build snapshot diff --git a/.github/workflows/languages-go-goreleaser.yml b/.github/workflows/languages-go-goreleaser.yml index 0dc11e7..f1cb5e1 100644 --- a/.github/workflows/languages-go-goreleaser.yml +++ b/.github/workflows/languages-go-goreleaser.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: go.mod cache: true - name: Run GoReleaser diff --git a/.github/workflows/languages-go-security.yml b/.github/workflows/languages-go-security.yml index 67487b3..eed7c7f 100644 --- a/.github/workflows/languages-go-security.yml +++ b/.github/workflows/languages-go-security.yml @@ -69,7 +69,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: go.mod cache: true - name: Install govulncheck diff --git a/.github/workflows/languages-go-test.yml b/.github/workflows/languages-go-test.yml index 7de1ed5..f5d0d5b 100644 --- a/.github/workflows/languages-go-test.yml +++ b/.github/workflows/languages-go-test.yml @@ -29,19 +29,11 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: ${{ inputs.go-version-file }} + go-version-file: go.mod cache: true - name: Run tests - run: | - ARGS="-timeout ${{ inputs.timeout }}" - if [ "${{ inputs.run-race }}" = "true" ]; then - ARGS="$ARGS -race" - fi - if [ "${{ inputs.coverage }}" = "true" ]; then - ARGS="$ARGS -coverprofile=coverage.out -covermode=atomic" - fi - go test $ARGS ./... + run: go test -timeout 20m -race -coverprofile=coverage.out -covermode=atomic ./... - name: Upload coverage report if: ${{ inputs.coverage }}