e2e: basic test for peerpods #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e peer-pods | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
recreate: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: ./.github/actions/setup_nix | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Login to Azure | |
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0 | |
with: | |
creds: ${{ secrets.CONTRAST_CI_INFRA_AZURE }} | |
- name: Cleanup .azure dir | |
run: | | |
rm "$HOME/.azure/{commandIndex.json,versionCheck.json}" | |
- id: resourcegroup | |
working-directory: contrast | |
run: | | |
echo "rg=contrastpp$RANDOM" >> "$GITHUB_OUTPUT" | |
- name: Test peer-pods | |
run: | | |
export azure_resource_group="${{ steps.kataversion.outputs.rg }}" | |
nix run .#scripts.test-peerpods | |
- name: Test peer-pods | |
run: | | |
export azure_resource_group="${{ steps.kataversion.outputs.rg }}" | |
nix run .#scripts.test-peerpods | |
- name: Terminate cluster | |
if: always() | |
run: | | |
az group delete --name "${{ steps.kataversion.outputs.rg }}_caa_cluster" --yes |