mirror of
https://github.com/0x5eal/chrono-lc.git
synced 2024-12-12 21:00:37 +00:00
35 lines
567 B
YAML
35 lines
567 B
YAML
|
name: CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
pull_request:
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
ci:
|
||
|
name: CI
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
submodules: true
|
||
|
|
||
|
- name: Install Rust
|
||
|
uses: dtolnay/rust-toolchain@stable
|
||
|
with:
|
||
|
components: rustfmt, clippy
|
||
|
|
||
|
- name: Rustfmt
|
||
|
run: cargo fmt -- --check
|
||
|
|
||
|
- name: Build
|
||
|
run: cargo build --locked
|
||
|
|
||
|
- name: Clippy
|
||
|
run: cargo clippy
|
||
|
|
||
|
- name: Test
|
||
|
run: cargo test --lib
|