-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 917 Bytes
/
Copy pathci.yml
File metadata and controls
31 lines (25 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: CI
on:
# Deliberately NOT `dev`: it is the integration trunk and pushes land there
# often and half-finished, so gating every one burns cycles for no signal.
# `just gate` is the local check; `workflow_dispatch` runs CI on dev on demand.
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# No toolchain action: the runner's rustup reads rust-toolchain.toml and
# installs the pinned channel + components. Pinning the action to @stable
# would override the file and reintroduce the drift it exists to prevent.
- name: install the pinned toolchain (rust-toolchain.toml)
run: rustup show
- name: fmt check
run: cargo fmt --check
- name: clippy
run: cargo clippy --all-targets -- -D warnings
- name: test
run: cargo test --all