mirror of
https://github.com/eternal-flame-AD/unitdc-rs.git
synced 2025-01-22 06:38:41 -06:00
40 lines
873 B
YAML
40 lines
873 B
YAML
name: Rust Check
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
check:
|
|
name: Cargo Check
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust: [stable, beta, nightly]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust }}
|
|
- name: Cargo Check
|
|
run: cargo check
|
|
|
|
clippy:
|
|
name: Cargo Clippy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
components: clippy
|
|
- name: Run Clippy
|
|
run: cargo clippy -- -D warnings
|
|
|
|
deps:
|
|
name: Check Dependencies
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Check Dependencies
|
|
run: scripts/check-deps.sh
|