Add guidance for brand-related colour changes #5805
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: Test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'feature/**' | |
| - 'v[0-9]' | |
| workflow_dispatch: | |
| inputs: | |
| runner: | |
| description: Run tests on | |
| type: choice | |
| default: ubuntu-22.04 | |
| options: | |
| - macos-latest | |
| - ubuntu-22.04 | |
| - windows-latest | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ${{ github.event.inputs.runner || 'ubuntu-22.04' }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Build | |
| uses: ./.github/workflows/actions/install-and-build | |
| with: | |
| cache_install: 'true' | |
| test: | |
| name: ${{ matrix.task.description }} | |
| runs-on: ${{ github.event.inputs.runner || 'ubuntu-22.04' }} | |
| needs: [build] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| task: | |
| - description: Lint Sass | |
| run: npm run lint:scss | |
| - description: Lint JavaScript | |
| run: npm run lint:js | |
| - description: Lint HTML | |
| run: npm run lint:html --ignore-scripts | |
| - description: EditorConfig | |
| run: npm run lint:editorconfig | |
| - description: Prettier | |
| run: npm run lint:prettier | |
| - description: TypeScript compiler | |
| run: npm run lint:types -- --pretty | |
| - description: JavaScript tests | |
| run: npx jest --color --maxWorkers=2 | |
| - description: Check broken links | |
| run: npm run check-links | |
| steps: | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| - name: Restore build | |
| uses: ./.github/workflows/actions/install-and-build | |
| - name: Run task | |
| id: task | |
| run: ${{ matrix.task.run }} | |
| continue-on-error: ${{ matrix.task.continue-on-error || false }} | |
| - name: Task warnings | |
| if: steps.task.outcome == 'failure' | |
| run: echo "::warning title=${{ matrix.task.description }} task failed::Check has been temporarily ignored" |