mirror of
https://github.com/agresdominik/ci-pipelines.git
synced 2026-07-21 21:20:54 +00:00
fix(languages): gitea runner input bug fix
This commit is contained in:
@@ -16,12 +16,14 @@ jobs:
|
||||
fmt:
|
||||
name: gofmt
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_VERSION_FILE: ${{ inputs.go-version-file }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
go-version-file: ${{ env.GO_VERSION_FILE }}
|
||||
cache: true
|
||||
|
||||
- name: Check formatting
|
||||
@@ -40,12 +42,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: fmt
|
||||
if: ${{ inputs.run-vet }}
|
||||
env:
|
||||
GO_VERSION_FILE: ${{ inputs.go-version-file }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
go-version-file: ${{ env.GO_VERSION_FILE }}
|
||||
cache: true
|
||||
|
||||
- name: go vet
|
||||
|
||||
@@ -16,13 +16,15 @@ jobs:
|
||||
check:
|
||||
name: goreleaser check
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_VERSION_FILE: ${{ inputs.go-version-file }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
go-version-file: ${{ env.GO_VERSION_FILE }}
|
||||
cache: true
|
||||
|
||||
- name: Validate .goreleaser.yaml
|
||||
@@ -35,6 +37,8 @@ jobs:
|
||||
name: goreleaser build (snapshot)
|
||||
runs-on: ubuntu-latest
|
||||
needs: check
|
||||
env:
|
||||
GO_VERSION_FILE: ${{ inputs.go-version-file }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -43,7 +47,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
go-version-file: ${{ env.GO_VERSION_FILE }}
|
||||
cache: true
|
||||
|
||||
- name: Build snapshot
|
||||
|
||||
@@ -15,6 +15,8 @@ jobs:
|
||||
release:
|
||||
name: goreleaser release
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_VERSION_FILE: ${{ inputs.go-version-file }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -23,7 +25,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
go-version-file: ${{ env.GO_VERSION_FILE }}
|
||||
cache: true
|
||||
|
||||
- name: Run GoReleaser
|
||||
|
||||
@@ -63,13 +63,15 @@ jobs:
|
||||
vuln:
|
||||
name: vulnerability check (govulncheck)
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_VERSION_FILE: ${{ inputs.go-version-file }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
go-version-file: ${{ env.GO_VERSION_FILE }}
|
||||
cache: true
|
||||
|
||||
- name: Install govulncheck
|
||||
|
||||
@@ -24,17 +24,21 @@ jobs:
|
||||
test:
|
||||
name: go test
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_VERSION_FILE: ${{ inputs.go-version-file }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
go-version-file: ${{ env.GO_VERSION_FILE }}
|
||||
cache: true
|
||||
|
||||
- name: Run tests
|
||||
env:
|
||||
TIMEOUT: ${{ inputs.timeout }}
|
||||
run: |
|
||||
ARGS="-timeout ${{ inputs.timeout }}"
|
||||
ARGS="-timeout $TIMEOUT"
|
||||
if [ "${{ inputs.run-race }}" = "true" ]; then
|
||||
ARGS="$ARGS -race"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user