Skip to content

Commit

Permalink
play around with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlazy1708 committed Aug 26, 2023
1 parent c69180d commit a8d91bc
Showing 1 changed file with 15 additions and 33 deletions.
48 changes: 15 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,27 @@ name: CI

on:
push:
branches: ['main']
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- uses: actions-rs/cargo@v1
with:
command: test
args: --tests --jobs 1 --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'

lint:
runs-on: ubuntu-latest
os:
- ubuntu-latest
- windows-latest
- macos-latest

toolchain:
- stable
- nightly

runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- run: rustup update ${{ matrix.toolchain }}
- run: rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --tests --verbose

0 comments on commit a8d91bc

Please sign in to comment.