From 0231b807f746a1e46fe1ef279acd444f12b137c5 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Wed, 1 Mar 2023 20:30:21 +0100 Subject: [PATCH] Optionally skip tests (#83) --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6103c7a..aa5fb80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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: