1682 bug supertask builder does not work properly #562
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
| name: Angular CI | |
| on: | |
| pull_request: | |
| branches: ['master'] # trigger build on PR to master | |
| jobs: | |
| code-check: | |
| name: Lint & Prettier Check | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Fetch base branch (if needed) | |
| run: git fetch origin ${{ github.base_ref }} --depth=1 || true | |
| - name: Get changed files | |
| id: changed-files | |
| uses: tj-actions/changed-files@v44 | |
| with: | |
| files: | | |
| **/*.ts | |
| **/*.js | |
| !**/*.spec.ts | |
| - name: Run ESLint on changed files | |
| if: steps.changed-files.outputs.all_changed_files != '' | |
| run: | | |
| FILES="${{ steps.changed-files.outputs.all_changed_files }}" | |
| echo "Linting files: $FILES" | |
| npx eslint $FILES | |
| - name: Run Prettier check on changed files | |
| if: steps.changed-files.outputs.all_changed_files != '' | |
| run: echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | xargs npx prettier --check | |
| build: | |
| name: Run Tests & Build | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests with Karma using ChromeHeadless | |
| run: npm run test:ci | |
| - name: Build the project | |
| run: npm run build --if-present |