CI / UI Checks (pull_request) Successful in 20s
CI / Rust Checks (pull_request) Failing after 15m51s
CI / Rust Feature Validation (pull_request) Skipped
CI / Frontend E2E (pull_request) Skipped
CI / Community Image Smoke (pull_request) Skipped
CI / Required Checks (pull_request) Failing after 5s
CI / Deploy (pull_request) Skipped
53 lines
1.9 KiB
YAML
53 lines
1.9 KiB
YAML
name: Story CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ['epic/**']
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
linters:
|
|
name: Linters
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Rust toolchain
|
|
run: |
|
|
set -eu
|
|
toolchain="$(sed -n 's/^channel = "\(.*\)"/\1/p' rust-toolchain.toml | head -n1)"
|
|
if [ -z "$toolchain" ]; then
|
|
echo "Unable to read Rust toolchain channel from rust-toolchain.toml" >&2
|
|
exit 1
|
|
fi
|
|
if ! rustup run "$toolchain" rustc --version >/dev/null 2>&1 || \
|
|
! rustup run "$toolchain" cargo --version >/dev/null 2>&1 || \
|
|
! rustup run "$toolchain" rustfmt --version >/dev/null 2>&1 || \
|
|
! rustup run "$toolchain" cargo-clippy --version >/dev/null 2>&1; then
|
|
rustup toolchain install "$toolchain" --profile minimal --component clippy --component rustfmt
|
|
fi
|
|
host="$(rustup run "$toolchain" rustc -vV | sed -n 's/^host: //p')"
|
|
toolchain_dir="${RUSTUP_HOME:-$HOME/.rustup}/toolchains/${toolchain}-${host}"
|
|
toolchain_bin="$toolchain_dir/bin"
|
|
if [ ! -x "$toolchain_bin/rustc" ] || [ ! -x "$toolchain_bin/cargo" ]; then
|
|
echo "Rust $toolchain was not installed at $toolchain_dir." >&2
|
|
exit 1
|
|
fi
|
|
printf '%s\n' "$toolchain_bin" >> "$GITHUB_PATH"
|
|
"$toolchain_bin/rustc" --version
|
|
"$toolchain_bin/cargo" --version
|
|
"$toolchain_bin/rustfmt" --version
|
|
"$toolchain_bin/cargo-clippy" --version
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --all --check
|
|
|
|
- name: Check Rust code health
|
|
run: scripts/check-rust-code-health.sh
|
|
|
|
- name: Check Rust boundaries
|
|
run: scripts/check-rust-boundaries.sh
|