Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: test cosign, slsa-verifier, GitHub CLI, and minisign in all envs #3156

Merged
merged 3 commits into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 34 additions & 10 deletions .github/workflows/wc-integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ jobs:
- run: github-compare -v
- run: terrafmt version

- name: test Cosign, SLSA, and GitHub Artifact Attestations
run: aqua i
working-directory: tests/cosign
env:
GH_DEBUG: "1"

- name: output bash completion
run: aqua completion bash
- name: output zsh completion
Expand Down Expand Up @@ -178,10 +172,6 @@ jobs:
- name: Remove not found command
run: aqua rm wiki-tui

- name: Test minisign
run: aqua i
working-directory: tests/minisign

- name: Test rm -m l
run: aqua rm -m l ghcp
- name: Test rm -m lp
Expand Down Expand Up @@ -228,3 +218,37 @@ jobs:
run: aqua gr crates.io/skim
env:
GITHUB_TOKEN: ${{github.token}}

integration-test-all-envs:
timeout-minutes: 30
runs-on: ${{ matrix.env.runs-on }}
permissions: {}
strategy:
matrix:
env:
- runs-on: windows-latest
- runs-on: ubuntu-24.04
- runs-on: macos-13
- runs-on: macos-14
env:
AQUA_LOG_COLOR: always
AQUA_GLOBAL_CONFIG: ${{ github.workspace }}/tests/main/aqua-global.yaml:${{ github.workspace }}/tests/main/aqua-global-2.yaml
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
cache: true
- run: go install ./cmd/aqua
- run: echo "${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua/bin" >> "$GITHUB_PATH"
- run: aqua policy allow

- name: Test minisign
run: aqua i
working-directory: tests/minisign
- name: test Cosign, SLSA, and GitHub Artifact Attestations
run: aqua i
working-directory: tests/cosign
env:
GH_DEBUG: "1"
GITHUB_TOKEN: ${{github.token}} # gh attestation verify requires a GitHub access token