From baac5bc31c10c10a3ea8ed1b1f4ec17d32342e14 Mon Sep 17 00:00:00 2001 From: ivvist Date: Sun, 1 Dec 2024 18:13:23 +0100 Subject: [PATCH] run all tests in one workflow --- .github/workflows/ci_reuse_go.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci_reuse_go.yml b/.github/workflows/ci_reuse_go.yml index 20c476b..471c90f 100644 --- a/.github/workflows/ci_reuse_go.yml +++ b/.github/workflows/ci_reuse_go.yml @@ -23,6 +23,9 @@ on: ignore_build: required: false type: string + test_subfolders: + required: false + type: string secrets: reporeading_token: required: true @@ -73,6 +76,12 @@ jobs: codecov-go-race: ${{ inputs.go_race }} run-mod-tidy: false + - name: Test subfolders + if: ${{ inputs.test_subfolders == 'true' }} + run: | + git config --global url."https://${{ secrets.reporeading_token }}:x-oauth-basic@github.com".insteadOf "https://github.com" + curl -s https://raw.githubusercontent.com/untillpro/ci-action/master/scripts/test_subfolders.sh | bash + - name: Check copyright run: curl -s https://raw.githubusercontent.com/untillpro/ci-action/master/scripts/check_copyright.sh | bash -s "$(go env GOPATH)"