Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
blckngm committed Aug 28, 2023
1 parent 50fa836 commit d015728
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.71.0
default: true
profile: minimal
components: clippy

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: fmt

- name: cargo fmt
run: cargo +nightly fmt -- --check

- name: cargo clippy
run: cargo clippy --all --all-targets -- -D clippy::all

- name: cargo test
run: cargo test --all --all-targets

0 comments on commit d015728

Please sign in to comment.