Repository navigation
Allow longer initiative effect names #1867
Workflow file for this run
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
| on: | |
| pull_request: | |
| paths: | |
| - "client/**" | |
| - "server/**" | |
| - ".github/workflows/pull_request.yaml" | |
| name: PR | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| CLIENT-setup: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changed-files: ${{ steps.changed-files.outputs.any_changed }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.9 | |
| with: | |
| files: | | |
| client/** | |
| .github/workflows/pull_request.yaml | |
| - name: Use Node.js 24.x | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| cache: "npm" | |
| cache-dependency-path: client/package-lock.json | |
| - name: npm i | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| working-directory: client | |
| run: npm ci | |
| - name: cache deps | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: client/node_modules | |
| key: client-${{ runner.os }}-${{ hashFiles('client/package-lock.json') }} | |
| restore-keys: client-${{ runner.os }}- | |
| CLIENT-checks: | |
| needs: CLIENT-setup | |
| if: needs.CLIENT-setup.outputs.changed-files == 'true' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| check: ["build:ci", "format:ci", "lint:ci", "test"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Restore deps | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: client/node_modules | |
| key: client-${{ runner.os }}-${{ hashFiles('client/package-lock.json') }} | |
| - name: Use Node.js 24.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| - name: Run ${{ matrix.check }} | |
| working-directory: client | |
| run: npm run ${{ matrix.check }} | |
| SERVER: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.9 | |
| with: | |
| files: | | |
| server/** | |
| .github/workflows/pull_request.yaml | |
| - name: Install UV | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.6.2" | |
| enable-cache: true | |
| - name: "Set up Python" | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: "server/pyproject.toml" | |
| - name: Install dependencies | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| working-directory: server | |
| run: uv sync | |
| - name: ruff - format | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| working-directory: server | |
| run: uv run ruff format --check src | |
| - name: ruff - lint | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| working-directory: server | |
| run: uv run ruff check src |