Skip to content

Commit

Permalink
Optionally skip tests (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Mar 1, 2023
1 parent 3f2ea32 commit 0231b80
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
schedule:
- cron: '0 10 * * 1' # run "At 10:00 on Monday"
workflow_call:
inputs:
skipTests:
description: 'Skip tests, useful when there is a dedicated CI job for tests'
default: false
required: false
type: boolean

jobs:
run:
Expand Down Expand Up @@ -50,9 +56,11 @@ jobs:
run: go build -o /dev/null ./...

- name: Go Test
if: ${{ !inputs.skipTests }}
run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./...

- name: Upload Coverage
if: ${{ !inputs.skipTests }}
uses: codecov/codecov-action@v3
continue-on-error: true
with:
Expand Down

0 comments on commit 0231b80

Please sign in to comment.