Skip to content

Commit

Permalink
test(ci): create testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Oakchris1955 committed Jul 22, 2024
1 parent ed5f016 commit ce271d2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Cargo Build & Test

on:
push:
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
test_all_features:
name: Run tests - All features enabled
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --all-features
- run: cargo test --verbose --all-features
test_no_default_features:
name: Run tests - No features enabled
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --no-default-features
- run: cargo test --verbose --no-default-features

0 comments on commit ce271d2

Please sign in to comment.