Skip to content

Commit

Permalink
Merge pull request #1 from joar/ci
Browse files Browse the repository at this point in the history
feat(ci): Add check workflow
  • Loading branch information
joar authored Feb 23, 2022
2 parents 8040a95 + 1314ca3 commit e697e29
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
cargo-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo check


fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo fmt --all --check

build-release-all-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo build --release --all-features

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
overwrite: true
- run: cargo test

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
overwrite: true
- run: cargo clippy

0 comments on commit e697e29

Please sign in to comment.