diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 38f2cb51d..b5102e16f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,4 +1,4 @@ -name: Tests +name: Unit Tests on: [push, pull_request] permissions: diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml new file mode 100644 index 000000000..2306100be --- /dev/null +++ b/.github/workflows/integration-tests.yml @@ -0,0 +1,27 @@ +name: Integration Tests +on: [push, pull_request] + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + env: + GH_TOKEN: ${{ github.token }} + + steps: + - name: Set up Go 1.21 + uses: actions/setup-go@v5 + with: + go-version: 1.21 + + - name: Check out code + uses: actions/checkout@v4 + + - name: Build executable + run: make bin/gh + + - name: Run attestation command integration Tests + run: ./test/integration/attestation-cmd/download-and-verify-package-attestation.sh