forked from
microcosm.blue/microcosm-rs
Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
1name: checks
2
3on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8
9env:
10 CARGO_TERM_COLOR: always
11
12jobs:
13 test:
14 runs-on: ubuntu-24.04
15 steps:
16 - uses: actions/checkout@v4
17 - name: Build lib
18 run: cargo build --verbose
19 - name: Check (default features)
20 run: cargo check
21 - name: Run tests
22 run: cargo test --all-features --verbose
23
24 style:
25 runs-on: ubuntu-24.04
26 steps:
27 - uses: actions/checkout@v4
28 - name: get nightly toolchain for jetstream fmt
29 run: rustup toolchain install nightly --allow-downgrade -c rustfmt
30 - name: fmt
31 run: cargo fmt --package links --package constellation --package ufos --package spacedust --package who-am-i --package slingshot --package pocket -- --check
32 - name: fmt jetstream (nightly)
33 run: cargo +nightly fmt --package jetstream -- --check
34 - name: clippy
35 run: cargo clippy --all-targets --all-features -- -D warnings