mirror of
https://github.com/stoatchat/rust-okapi.git
synced 2026-07-01 21:44:49 -04:00
29 lines
543 B
YAML
29 lines
543 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build
|
|
run: cargo build
|
|
- name: Run tests
|
|
run: cargo test
|
|
- name: Format
|
|
run: cargo fmt -- --check
|
|
- name: Linting
|
|
run: cargo clippy -- -D warnings
|
|
- name: Audit
|
|
run: |
|
|
cargo update
|
|
cargo audit
|
|
# Allowed to fail but this will notify us that some dependency might need an update.
|
|
continue-on-error: true
|