2023-01-18 20:55:27 -05:00
|
|
|
name: CI
|
2023-01-18 20:47:14 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-05-19 17:03:29 +02:00
|
|
|
pull_request:
|
2023-05-19 17:04:47 +02:00
|
|
|
workflow_dispatch:
|
2023-01-18 20:47:14 -05:00
|
|
|
|
|
|
|
jobs:
|
2023-01-18 20:55:27 -05:00
|
|
|
ci:
|
|
|
|
name: CI
|
2023-01-18 20:47:14 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
2023-03-22 14:23:08 +01:00
|
|
|
with:
|
|
|
|
submodules: true
|
2023-01-18 20:47:14 -05:00
|
|
|
|
|
|
|
- name: Install Rust
|
2023-02-23 21:05:25 +01:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2023-01-18 20:47:14 -05:00
|
|
|
with:
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
2023-03-22 14:12:05 +01:00
|
|
|
- name: Install project tools
|
|
|
|
uses: ok-nick/setup-aftman@v0.3.0
|
|
|
|
|
2023-01-18 20:47:14 -05:00
|
|
|
- name: Rustfmt
|
|
|
|
run: cargo fmt -- --check
|
|
|
|
|
2023-01-18 20:55:27 -05:00
|
|
|
- name: Build
|
2023-02-05 19:13:58 -05:00
|
|
|
run: cargo build --locked
|
2023-01-18 20:55:27 -05:00
|
|
|
|
2023-01-18 20:47:14 -05:00
|
|
|
- name: Clippy
|
|
|
|
run: cargo clippy
|
2023-01-18 20:55:27 -05:00
|
|
|
|
2023-01-21 00:04:38 -05:00
|
|
|
- name: Test - Lune
|
2023-03-22 14:12:05 +01:00
|
|
|
run: just test
|
2023-03-10 11:39:54 +01:00
|
|
|
|
2023-01-21 00:04:38 -05:00
|
|
|
- name: Test - CLI
|
2023-03-22 14:12:05 +01:00
|
|
|
run: just test-cli
|