diff --git a/.github/workflows/e2e-info.yml b/.github/workflows/e2e-info.yml index 5ae8577c..a970fdfc 100644 --- a/.github/workflows/e2e-info.yml +++ b/.github/workflows/e2e-info.yml @@ -16,9 +16,9 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.26' + go-version-file: 'go.mod' - name: make run: make - name: Validate JSON run: | - ./test/check_info_schema.sh \ No newline at end of file + ./test/check_info_schema.sh diff --git a/.github/workflows/integration-json.yml b/.github/workflows/integration-json.yml index 28e45ffb..f43f163a 100644 --- a/.github/workflows/integration-json.yml +++ b/.github/workflows/integration-json.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.26' + go-version-file: 'go.mod' - name: make run: make - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 5353845a..d687b989 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.26' + go-version-file: 'go.mod' cache: true - name: make run: make @@ -35,7 +35,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.26' + go-version-file: 'go.mod' cache: true - name: make run: make diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 4750fe05..574631eb 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -1,5 +1,7 @@ name: Draft Release & Publish on: + pull_request: + workflow_dispatch: push: branches: - 'main' @@ -7,9 +9,30 @@ on: - 'CHANGELOG.md' jobs: + Release-Preflight: + name: Release Build Preflight + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + permissions: + contents: read + env: + GOTOOLCHAIN: local + DRAFT_VERSION: preflight + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - name: Set up Go + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 + with: + go-version-file: 'go.mod' + - name: Build Draft Release Binaries + run: make build-all Release-Artifacts: name: Draft Release + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest + env: + GOTOOLCHAIN: local permissions: actions: read contents: write @@ -38,7 +61,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.25' + go-version-file: 'go.mod' # Check if the newest tag already exists - name: Check if tag exist uses: mukunku/tag-exists-action@5c39604fe8aef7e65acb6fbcf96ec580f7680313 # v1.7.0 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 6a546aa8..aaac1cdc 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -11,6 +11,6 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.26' + go-version-file: 'go.mod' - name: make run: make run-unit-tests