Skip to content

docs: add target architecture blueprint and update lib exports in CLA… #22

docs: add target architecture blueprint and update lib exports in CLA…

docs: add target architecture blueprint and update lib exports in CLA… #22

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
commit-message:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate commit messages
shell: bash
run: |
set -euo pipefail
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
git fetch --no-tags origin "${{ github.base_ref }}"
range="origin/${{ github.base_ref }}..HEAD"
else
before="${{ github.event.before }}"
if [[ "$before" == "0000000000000000000000000000000000000000" ]]; then
range="${{ github.sha }}"
else
range="$before..${{ github.sha }}"
fi
fi
mapfile -t subjects < <(git log --format=%s "$range")
if [[ "${#subjects[@]}" -eq 0 ]]; then
echo "No commits found in range: $range"
exit 0
fi
for subject in "${subjects[@]}"; do
./scripts/validate-commit-subject.sh "$subject"
done
test:
needs: commit-message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: "crewforge-rs -> crewforge-rs/target"
- run: cargo test --manifest-path crewforge-rs/Cargo.toml
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci --prefix crewforge-ts
- run: npm test --prefix crewforge-ts