2023-01-19 01:55:27 +00:00
|
|
|
name: CI
|
2023-01-19 01:47:14 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
2023-01-19 01:55:27 +00:00
|
|
|
ci:
|
|
|
|
name: CI
|
2023-01-19 01:47:14 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
|
|
|
- name: Rustfmt
|
|
|
|
run: cargo fmt -- --check
|
|
|
|
|
2023-01-19 01:55:27 +00:00
|
|
|
- name: Build
|
2023-02-06 00:13:58 +00:00
|
|
|
run: cargo build --locked
|
2023-01-19 01:55:27 +00:00
|
|
|
|
2023-01-19 01:47:14 +00:00
|
|
|
- name: Clippy
|
|
|
|
run: cargo clippy
|
2023-01-19 01:55:27 +00:00
|
|
|
|
2023-01-21 05:04:38 +00:00
|
|
|
- name: Test - Lune
|
2023-02-06 00:13:58 +00:00
|
|
|
run: cargo test --package lune
|
2023-01-21 05:04:38 +00:00
|
|
|
|
|
|
|
- name: Test - CLI
|
2023-02-06 00:13:58 +00:00
|
|
|
run: cargo test --package lune-cli
|