Skip to content

Test

Test #590

Workflow file for this run

name: Test
on:
push:
branches:
- master
schedule:
- cron: '0 6 * * SAT'
pull_request:
branches:
- master
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install latest beta
uses: actions-rs/toolchain@v1
with:
toolchain: beta
- name: Build
run: cargo build --all --verbose
- name: Run tests stable
run: RSTEST_TEST_CHANNEL=stable cargo test --all --verbose
- name: Run tests beta
run: RSTEST_TEST_CHANNEL=beta cargo test --all --verbose
- name: Run tests nightly
run: RSTEST_TEST_CHANNEL=nightly cargo test --all --verbose
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --rust-version --workspace --ignore-private
- run: cargo hack test --rust-version --workspace --exclude rstest_reuse --ignore-private