Nightly pipeline integration tests #427
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: Nightly pipeline integration tests | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 01 * * *' | |
push: | |
branches: | |
- 'release-*' | |
concurrency: | |
group: "${{ github.ref }}-${{ github.workflow }}" | |
cancel-in-progress: true | |
jobs: | |
check-vars-and-secrets: | |
name: Check vars and secrets | |
uses: ./.github/workflows/_check-vars-and-secrets.yml | |
secrets: inherit | |
run-tests: | |
name: Run all unit and integration workspace tests | |
runs-on: [self-hosted, Linux, X64, large] | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTC_WRAPPER: sccache | |
steps: | |
- name: Checkout Source code | |
uses: actions/checkout@v4 | |
- name: Install Rust Toolchain | |
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v7 | |
- name: Run Test Suite | |
run: | | |
cargo test --workspace | |
- name: Install Rust Toolchain For Chain Extension Tests | |
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v7 | |
with: | |
channel: nightly-2024-02-14 | |
targets: wasm32-unknown-unknown | |
slack-notification: | |
name: Slack notification | |
runs-on: ubuntu-20.04 | |
needs: [run-tests, check-vars-and-secrets] | |
if: ${{ !cancelled() }} | |
steps: | |
- name: Send Slack message | |
uses: Cardinal-Cryptography/github-actions/slack-notification@v7 | |
with: | |
notify-on: "failure" | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }} |