Initial commit
This commit is contained in:
23
.github/workflows/cargo-audit.yml
vendored
Normal file
23
.github/workflows/cargo-audit.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Cargo security audit
|
||||
on:
|
||||
schedule:
|
||||
- cron: "31 1 * * *"
|
||||
|
||||
push:
|
||||
paths:
|
||||
- "**/Cargo.toml"
|
||||
- "**/Cargo.lock"
|
||||
jobs:
|
||||
audit:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./backend
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- uses: rustsec/audit-check@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
32
.github/workflows/cargo-test.yml
vendored
Normal file
32
.github/workflows/cargo-test.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Cargo test & clippy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
rust-clippy-analyze:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Run rust-clippy
|
||||
run: cargo clippy --all-features
|
||||
Reference in New Issue
Block a user