diff --git a/.github/workflows/reusable-testing.yml b/.github/workflows/reusable-testing.yml index bfc6a27b..835f83e3 100644 --- a/.github/workflows/reusable-testing.yml +++ b/.github/workflows/reusable-testing.yml @@ -20,4 +20,4 @@ jobs: run: go mod download -x - name: Test - run: go run github.com/go-task/task/v3/cmd/task test.ci + run: go run github.com/go-task/task/v3/cmd/task test.ci \ No newline at end of file diff --git a/.github/workflows/tag-and-release.yml b/.github/workflows/tag-and-release.yml index 0ab61029..da815c64 100644 --- a/.github/workflows/tag-and-release.yml +++ b/.github/workflows/tag-and-release.yml @@ -2,19 +2,12 @@ name: Test and maybe create a new release on: push: - branches: - - v3 + branches: [master, v3] permissions: contents: write jobs: test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: ./.github/workflows/reusable-testing.yml - + uses: ./.github/workflows/reusable-testing.yml tag: runs-on: ubuntu-latest needs: test diff --git a/.github/workflows/testing-dispatch.yml b/.github/workflows/testing-dispatch.yml index 57cc8e9e..a1491c4b 100644 --- a/.github/workflows/testing-dispatch.yml +++ b/.github/workflows/testing-dispatch.yml @@ -3,19 +3,13 @@ name: Go Test (manual run) on: workflow_dispatch: inputs: - tag: - description: "Tag to checkout." + ref: + description: "Tag/commit to checkout." type: string required: true jobs: test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - ref: ${{ github.event.inputs.tag }} - - uses: ./.github/workflows/reusable-testing.yml - - + uses: ./.github/workflows/reusable-testing.yml + with: + ref: ${{ inputs.ref }}