backend: eliminate banner reminder false positives #758
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: Playwright Tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download latest simulator from simulators.json | |
| run: | | |
| set -euo pipefail | |
| simulator_url=$(jq -r '.[-1].url' backend/devices/bitbox02/testdata/simulators.json) | |
| simulator_sha=$(jq -r '.[-1].sha256' backend/devices/bitbox02/testdata/simulators.json) | |
| mkdir -p simulator-bin | |
| curl -L "$simulator_url" -o simulator-bin/simulator | |
| echo "$simulator_sha simulator-bin/simulator" | sha256sum -c - | |
| chmod +x simulator-bin/simulator | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: | | |
| cd frontends/web | |
| npm install | |
| - name: Install Playwright browsers | |
| run: | | |
| cd frontends/web | |
| npx playwright install --with-deps chromium webkit | |
| - name: Run Playwright tests | |
| env: | |
| SIMULATOR_PATH: ${{ github.workspace }}/simulator-bin/simulator | |
| run: make webe2etest | |
| - name: Upload Playwright artifacts and logs. | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-artifacts-and-logs | |
| path: frontends/web/test-results/* |