-
Notifications
You must be signed in to change notification settings - Fork 615
76 lines (70 loc) · 2.79 KB
/
Copy pathaztec-cli-acceptance-test.yml
File metadata and controls
76 lines (70 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Validates that a published Aztec CLI release can be installed and used end-to-end.
# Runs after CI3 completes a tag release (via workflow_run), or manually via workflow_dispatch.
name: Aztec CLI Acceptance Test
on:
workflow_dispatch:
inputs:
version:
description: "Version to install (e.g. latest, nightly, 4.3.0, 4.3.0-nightly.20260420)"
required: true
type: string
workflow_run:
workflows: ["CI3"]
types:
- completed
branches:
- "v*"
jobs:
release-acceptance:
strategy:
fail-fast: false # Don't cancel the other OS if one fails.
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'workflow_run'
&& github.event.workflow_run.conclusion == 'success'
&& !contains(github.event.workflow_run.head_branch, '-commit.'))
env:
VERSION: ${{ github.event.inputs.version || github.event.workflow_run.head_branch }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.workflow_run.head_sha || github.sha }}
- name: Run Aztec CLI acceptance test
timeout-minutes: 30
run: ./aztec-up/test/aztec-cli-acceptance-test/run-test.sh
notify:
needs: release-acceptance
if: always() && github.event_name != 'workflow_dispatch'
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.inputs.version || github.event.workflow_run.head_branch }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.event.workflow_run.head_sha || github.sha }}
- name: Notify Slack on success
if: needs.release-acceptance.result == 'success'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
run: |
export CI=1
./ci3/slack_notify \
"Aztec CLI Acceptance Test passed for version ${VERSION} :white_check_mark:" \
"#team-fairies"
- name: Notify Slack and dispatch ClaudeBox on failure
if: needs.release-acceptance.result == 'failure'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
run: |
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
export CI=1
./ci3/slack_notify_with_claudebox_kickoff "#team-fairies" \
"Aztec CLI Acceptance Test FAILED (version ${VERSION}): <${RUN_URL}|View Run>" \
"Aztec CLI acceptance test failed for version ${VERSION}. CI run: ${RUN_URL}. Investigate the failure and explain the root cause." \
--link "$RUN_URL"