diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3467674..b038476 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,9 @@ name: Build project on: [ push, pull_request ] jobs: build: + # allow triggering on a push to the repo, or a PR build, not both events + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action in ['opened', 'synchronize', 'reopened']) + name: Build runs-on: ubuntu-latest strategy: @@ -9,9 +12,13 @@ jobs: # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go matrix: version: + # versions of Go that this module can still be built with (and therefore are "supported" by this project) - "1.20" - "1.21" - "1.22" + # actively supported versions of Go + - "1.23" + - "1.24" steps: - name: Check out source code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 1552de8..9ce1219 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -9,9 +9,13 @@ jobs: # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go matrix: version: + # versions of Go that this module can still be built with (and therefore are "supported" by this project) - "1.20" - "1.21" - "1.22" + # actively supported versions of Go + - "1.23" + - "1.24" steps: - name: Check out source code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 33d68cf..49f0366 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,9 +9,13 @@ jobs: # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go matrix: version: + # versions of Go that this module can still be built with (and therefore are "supported" by this project) - "1.20" - "1.21" - "1.22" + # actively supported versions of Go + - "1.23" + - "1.24" steps: - name: Check out source code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml index fff71a2..3183667 100644 --- a/.github/workflows/tidy.yml +++ b/.github/workflows/tidy.yml @@ -9,9 +9,13 @@ jobs: # perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go matrix: version: + # versions of Go that this module can still be built with (and therefore are "supported" by this project) - "1.20" - "1.21" - "1.22" + # actively supported versions of Go + - "1.23" + - "1.24" steps: - name: Check out source code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4