Tx5Pipe #266
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ | |
ubuntu-latest, | |
macos-latest, | |
windows-latest, | |
] | |
toolchain: [ | |
stable, | |
] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Go Toolchain | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '=1.18.0' | |
- name: Rust Toolchain | |
run: | | |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --no-self-update | |
rustup default ${{ matrix.toolchain }} | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Cargo Build | |
run: cargo build --all-targets | |
- name: Cargo Test | |
env: | |
RUST_BACKTRACE: 1 | |
run: cargo test -- --test-threads 1 --nocapture |