Skip to content

Commit

Permalink
Add GitHub Actions to run tests for default and #![no_std] modes
Browse files Browse the repository at this point in the history
  • Loading branch information
u1f408 committed Aug 26, 2021
1 parent 458d861 commit 9390870
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust

on:
pull_request:
push:

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- run: cargo check

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- run: cargo test

test_no_default_features:
name: Test (no default features)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- run: cargo test --no-default-features

0 comments on commit 9390870

Please sign in to comment.