Add basic CI
This commit is contained in:
parent
7eb35d58e7
commit
58ebeb5f3e
29
.github/workflows/push.yml
vendored
Normal file
29
.github/workflows/push.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
on: [push]
|
||||
|
||||
name: Push
|
||||
jobs:
|
||||
build_and_test:
|
||||
name: Rust project
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Unit tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --release
|
||||
|
||||
- name: Clippy
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
|
||||
- name: Check Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --bins --release
|
Loading…
Reference in a new issue