trying new git workflow
Some checks failed
Test Rust project / test (ubuntu-latest, nightly) (push) Failing after 15s
Test Rust project / test (ubuntu-latest, stable) (push) Failing after 4s

This commit is contained in:
Oliver Atkinson 2024-07-29 08:07:26 -06:00
parent 460e832cbf
commit 09df72de7b
2 changed files with 17 additions and 25 deletions

View File

@ -0,0 +1,17 @@
name: Test Rust project
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable, nightly]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Run tests
run: cargo test --verbose

View File

@ -1,25 +0,0 @@
name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- nightly
steps:
- uses: actions/checkout@v4
- run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- run: . "$HOME/.cargo/env"; rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: . "$HOME/.cargo/env"; cargo build --verbose
- run: . "$HOME/.cargo/env"; cargo build test --verbose