-
Notifications
You must be signed in to change notification settings - Fork 49
55 lines (48 loc) · 1.43 KB
/
nightly-integration-tests.yml
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
---
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 }}