fix: only have html in privacy-policy.html #442
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: Node.js CI | |
| on: | |
| push: | |
| branches: ['master'] | |
| pull_request: | |
| branches: ['master'] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| RUN_E2E: ${{ vars.RUN_E2E }} # from repository settings -> Actions -> Variables | |
| strategy: | |
| matrix: | |
| node-version: [24.x] | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - run: npm install | |
| - run: npm run lint-check | |
| - run: npm run test | |
| # For testing in Windows CI, we need to limit the path to exclude the additional executables | |
| # that the default github runner has, but are not on a vanilla Windows OS installation. | |
| - if: ${{ (env.RUN_E2E == 'true' || github.repository == 'sahat/hackathon-starter') && matrix.os == 'windows-latest' }} | |
| env: | |
| PATH: 'C:\Windows\System32;C:\Windows' | |
| run: npm run test:e2e:replay | |
| # if not Windows, run normally | |
| - if: ${{ (env.RUN_E2E == 'true' || github.repository == 'sahat/hackathon-starter') && matrix.os != 'windows-latest' }} | |
| run: npm run test:e2e:replay | |
| - name: Upload tmp as an artifact (Playwrite artifacts, code coverage report, etc) | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: tmp-artifacts-${{ matrix.os }}-${{ github.job }}-${{ github.run_id }} | |
| path: tmp/** |