fix(ci): mark e2e agent tests as #[ignore] for CI #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |