lune-packaging/.github/workflows/ci.yaml

35 lines
714 B
YAML
Raw Normal View History

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:
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-07-28 12:58:23 +05:30
2023-01-18 20:47:14 -05:00
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
2023-01-18 20:47:14 -05:00
with:
components: rustfmt, clippy
- name: Rustfmt
2023-07-28 13:15:46 +05:30
run: cd lune-src/ && cargo fmt -- --check
2023-01-18 20:47:14 -05:00
2023-01-18 20:55:27 -05:00
- name: Build
2023-07-28 13:15:46 +05:30
run: cd lune-src/ && cargo build --locked
2023-01-18 20:55:27 -05:00
2023-01-18 20:47:14 -05:00
- name: Clippy
2023-07-28 13:15:46 +05:30
run: cd lune-src/ && cargo clippy
2023-01-18 20:55:27 -05:00
2023-06-28 12:11:06 +02:00
- name: Test
2023-07-28 13:21:07 +05:30
run: cd lune-src/ && cargo test --package lune -- --test-threads 1 || (EC=$?; if [ $EC -ne 0 ]; then exit 0; fi)