diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 475b8a9f..fc83dbbe 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,17 +10,29 @@ env: CARGO_TERM_COLOR: always jobs: - build: - + check: + name: Check Chumsky + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt, clippy + - name: Run cargo check + run: cargo check --verbose --no-default-features + test: + name: Test Chumsky runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose - - name: Run tests without default features - run: cargo test --verbose --no-default-features - - name: Run tests with all features - run: cargo +nightly test --verbose --all-features + - uses: actions/checkout@v2 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + - name: Run cargo check + run: cargo test --verbose --all-features