Create local branches for the tests in CI. #63
Workflow file for this run
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: Rust | |
on: [push, pull_request] | |
jobs: | |
stable: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create local branches for tests | |
run: | | |
for branch in test-root test-module-{a,b,c}; do | |
git branch --track "$branch" "origin/$branch" | |
done | |
- name: Build | |
run: cargo +stable build --verbose | |
- name: Run tests | |
run: cargo +stable test --verbose | |
nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Rust nightly | |
run: rustup install nightly | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create local branches for tests | |
run: | | |
for branch in test-root test-module-{a,b,c}; do | |
git branch --track "$branch" "origin/$branch" | |
done | |
- name: Build | |
run: cargo +nightly build --verbose | |
- name: Run tests | |
run: cargo +nightly test --verbose |