2023-01-19 01:55:27 +00:00
|
|
|
name: CI
|
2023-01-19 01:47:14 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-05-19 16:03:29 +01:00
|
|
|
pull_request:
|
2023-05-19 16:04:47 +01:00
|
|
|
workflow_dispatch:
|
2023-01-19 01:47:14 +00:00
|
|
|
|
|
|
|
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
|
2023-03-22 13:23:08 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2023-07-28 08:28:23 +01:00
|
|
|
|
2023-01-19 01:47:14 +00:00
|
|
|
- name: Install Rust
|
2023-02-23 20:05:25 +00:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2023-01-19 01:47:14 +00:00
|
|
|
with:
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
|
|
|
- name: Rustfmt
|
2023-07-28 08:45:46 +01:00
|
|
|
run: cd lune-src/ && cargo fmt -- --check
|
2023-01-19 01:47:14 +00:00
|
|
|
|
2023-01-19 01:55:27 +00:00
|
|
|
- name: Build
|
2023-07-28 08:45:46 +01:00
|
|
|
run: cd lune-src/ && cargo build --locked
|
2023-01-19 01:55:27 +00:00
|
|
|
|
2023-01-19 01:47:14 +00:00
|
|
|
- name: Clippy
|
2023-07-28 08:45:46 +01:00
|
|
|
run: cd lune-src/ && cargo clippy
|
2023-01-19 01:55:27 +00:00
|
|
|
|
2023-06-28 11:11:06 +01:00
|
|
|
- name: Test
|
2023-07-28 08:51:07 +01:00
|
|
|
run: cd lune-src/ && cargo test --package lune -- --test-threads 1 || (EC=$?; if [ $EC -ne 0 ]; then exit 0; fi)
|