This commit is contained in:
37
.github/workflows/distribution-gate.yml
vendored
Normal file
37
.github/workflows/distribution-gate.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: distribution-gate
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
distribution-gate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Quality checks
|
||||
run: |
|
||||
cargo test --locked
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy --all-targets --all-features --locked -- -D warnings
|
||||
cargo build --locked --release
|
||||
|
||||
- name: Distribution gate
|
||||
run: python3 scripts/release-gate.py
|
||||
Reference in New Issue
Block a user