From 96db923f19a72d954647f4b3564a220e58e06fe5 Mon Sep 17 00:00:00 2001 From: ejahnGithub Date: Fri, 30 May 2025 12:33:40 -0700 Subject: [PATCH] revert the workflow --- .github/workflows/go.yml | 31 +++++++++++++++++++++++++-- pkg/cmd/release/verify/verify_test.go | 2 +- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8a4ead221..4be1a55d2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest] + os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: @@ -25,6 +25,33 @@ jobs: run: go mod download - name: Run unit and integration tests - run: go test -v ./pkg/cmd/release/verify-asset ./pkg/cmd/attestation/artifact + run: go test -race -tags=integration ./... + - name: Build run: go build -v ./cmd/gh + + integration-tests: + env: + GH_TOKEN: ${{ github.token }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + + - name: Build executable + run: make + + - name: Run attestation command set integration tests + shell: bash + run: | + ./test/integration/attestation-cmd/run-all-tests.sh "${{ matrix.os }}" diff --git a/pkg/cmd/release/verify/verify_test.go b/pkg/cmd/release/verify/verify_test.go index 53078f450..22eaba54a 100644 --- a/pkg/cmd/release/verify/verify_test.go +++ b/pkg/cmd/release/verify/verify_test.go @@ -14,8 +14,8 @@ import ( "github.com/cli/cli/v2/pkg/cmdutil" "github.com/cli/cli/v2/pkg/httpmock" "github.com/cli/cli/v2/pkg/iostreams" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "gotest.tools/v3/assert" ) func TestNewCmdVerify_Args(t *testing.T) {