Cron CI #120
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: Cron CI | |
on: | |
schedule: | |
- cron: '0 8 * * 1,5' | |
jobs: | |
# == TEST (NO UI) == # | |
test-no-ui: | |
name: Test (no UI) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
rust-toolchains: | |
- beta | |
- nightly | |
steps: | |
- name: Install Rust toolchain | |
id: toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust-toolchains }} | |
- name: Override toolchain | |
run: rustup override set ${{ steps.toolchain.outputs.name }} | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Cargo +nightly test (no UI) | |
if: matrix.rust-toolchains == 'nightly' | |
env: | |
CI_SKIP_UI_TESTS: "1" | |
run: cargo test --verbose --features nightly | |
- name: Cargo test (no UI) | |
if: matrix.rust-toolchains != 'nightly' | |
env: | |
CI_SKIP_UI_TESTS: "1" | |
run: cargo test --verbose |