27 lines
640 B
YAML
27 lines
640 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GITEA }}
|
|
|
|
- name: Configure git to use HTTPS for submodules
|
|
run: |
|
|
git config --global url."https://${{ secrets.GITEA }}@git.rcjohnstone.com/".insteadOf "ssh://connor@git.rcjohnstone.com:2222/"
|
|
git submodule update --init --recursive
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- run: cargo fmt --check
|
|
|
|
- run: cargo clippy --workspace -- -D warnings
|
|
|
|
- run: cargo build --workspace
|
|
|
|
- run: cargo test --workspace
|