Repository navigation
Fix frontend building pipeline (#418) #179
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 frontend | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - "release/**" | |
| - "stable/**" | |
| paths-ignore: | |
| - "*.md" | |
| - "LICENSE" | |
| pull_request: | |
| branches: | |
| - dev | |
| - "release/**" | |
| - "stable/**" | |
| paths-ignore: | |
| - "*.md" | |
| - "LICENSE" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-web: | |
| runs-on: | |
| - codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| submodules: recursive | |
| - name: Install NodeJS | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 26 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@008330803749db0355799c700092d9a85fd074e9 # v6.0.9 | |
| with: | |
| package_json_file: web/package.json | |
| cache: true | |
| run_install: false | |
| - name: Install deps | |
| working-directory: web | |
| run: pnpm install --frozen-lockfile | |
| - name: Run frontend tests | |
| working-directory: web | |
| run: pnpm test |