Nightly test #826
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 test | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
nightly-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
channel: | |
- name: 'Staking Miner Dev' | |
room: '!tXyUlsDAYvDfRKbzKx:parity.io' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get Polkadot and Staking Miner Playground binaries | |
uses: ./.github/workflows/actions/prepare-binaries | |
- name: Cache Rust dependencies | |
uses: swatinem/rust-cache@v2 | |
with: | |
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }} | |
cache-on-failure: true | |
- name: Run nightly tests | |
run: | | |
RUST_LOG=info cargo test --workspace --all-features -- --nocapture | |
- name: Create an issue on failure | |
if: failure() | |
uses: JasonEtco/create-an-issue@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
FAILED_WORKFLOW_RUN_URL: https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }} | |
with: | |
# Use this issue template: | |
filename: .github/issue_templates/nightly_run_failed.md | |
# Update existing issue if found; hopefully will make it clearer | |
# that it is still an issue: | |
update_existing: true | |
# Look for new *open* issues in this search (we want to | |
# create a new one if we only find closed versions): | |
search_existing: open | |
- name: Notify daily integration tests failure | |
if: failure() | |
uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3 | |
with: | |
room_id: ${{ matrix.channel.room }} | |
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | |
server: m.parity.io | |
message: | | |
@room Daily integration tests failed https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks/${{ github.run_id }} | |