Add GitHub action

This commit is contained in:
kaiwitt 2021-08-28 09:33:24 +02:00
parent 808820173b
commit e3541e5c41
No known key found for this signature in database
GPG Key ID: 2D2F3D411C032247
2 changed files with 29 additions and 0 deletions

17
workflows/cargo.yml Normal file
View File

@ -0,0 +1,17 @@
on: [push]
name: CI
jobs:
build_and_test:
name: cargo_test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
args: --release --all-features

12
workflows/clippy.yml Normal file
View File

@ -0,0 +1,12 @@
on: push
name: Clippy check
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features