Use GitHub Actions

This commit is contained in:
Damian Poddebniak 2021-07-20 21:47:55 +02:00
parent c056f622c7
commit b83c4fd065
2 changed files with 48 additions and 0 deletions

22
.github/workflows/audit.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Audit
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ main ]
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
branches: [ main ]
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

26
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose
- name: Fmt
run: cargo fmt -- --check --config imports_granularity=Crate,group_imports=StdExternalCrate
- name: Clippy
run: cargo clippy