rust/.gitea/workflows/rust.yml

20 lines
504 B
YAML
Raw Normal View History

2023-11-25 17:26:53 +00:00
on: [push, pull_request]
name: Rust Checks
jobs:
checks:
runs-on: rust
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use cache
2024-01-05 22:15:26 +00:00
run: mkdir -p /cache/${{ gitea.repository }} && ln -s /cache/${{ gitea.repository }} target
2023-11-25 17:26:53 +00:00
- name: Cargo fmt
2024-01-05 22:15:26 +00:00
run: cargo fmt --check
2023-11-25 17:26:53 +00:00
- name: Cargo build
2024-01-05 22:15:26 +00:00
run: cargo build
2023-11-25 17:26:53 +00:00
- name: Cargo test
2024-01-05 22:15:26 +00:00
run: cargo test
2023-11-25 17:26:53 +00:00
- name: Cargo clippy
2024-01-05 22:15:26 +00:00
run: cargo clippy -- -D warnings