chore(deps-dev): bump the build group across 1 directory with 4 updates #444
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| env: | |
| REGISTRY: ghcr.io | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| audit: | |
| name: Audit | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Audit dependencies | |
| uses: ./.github/actions/setup | |
| with: | |
| NODE_AUTH_TOKEN: ${{ secrets.REPO_READ_ONLY_TOKEN }} | |
| audit-level: moderate | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup dependencies | |
| uses: ./.github/actions/setup | |
| with: | |
| NODE_AUTH_TOKEN: ${{ secrets.REPO_READ_ONLY_TOKEN }} | |
| - name: Run linter | |
| run: npm run lint | |
| continue-on-error: true | |
| - name: Check formatting | |
| run: npm run format:check | |
| visual-test: | |
| name: Visual regression test | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| NODE_AUTH_TOKEN: ${{ secrets.REPO_READ_ONLY_TOKEN }} | |
| - name: Build | |
| run: npm run build | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run visual regression test | |
| run: npm run visual:test | |
| - name: Generate job summary | |
| uses: test-summary/action@v2 | |
| with: | |
| paths: visual-test/ci_report/xunit.xml | |
| if: ${{ always() && hashFiles('visual-test/ci_report/xunit.xml') }} | |
| - name: Upload visual test report | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: visual-test-report | |
| path: | | |
| visual-test/html_report/ | |
| visual-test/bitmaps_*/ | |
| if: ${{ always() && hashFiles('visual-test/html_report/index.html') }} |