mirror of
https://github.com/agresdominik/ci-pipelines.git
synced 2026-07-21 23:30:55 +00:00
fix(languages): gitea runner input bug fix
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user