fix: Upgrade brances and ansi-regex #318
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: Node | |
| on: | |
| pull_request: | |
| paths: | |
| - "ui/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| name: Build and Test | |
| defaults: | |
| run: | |
| working-directory: ui | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js 16.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16.x | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Caluclate bundle size | |
| id: bundle | |
| uses: ./.github/actions/bundle | |
| - name: Test | |
| run: npm run test | |
| - name: Coverage report | |
| id: coverage | |
| if: ${{ always() }} | |
| uses: ./.github/actions/coverage-report | |
| lint: | |
| runs-on: ubuntu-22.04 | |
| name: ESLint | |
| defaults: | |
| run: | |
| working-directory: ui | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js 16.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16.x | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Code lint | |
| run: npm run lint | |
| e2e-tests: | |
| runs-on: ubuntu-22.04 # or macos-latest, windows-latest | |
| defaults: | |
| run: | |
| working-directory: ui | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Increase file watcher limit | |
| run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16.x | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: set up playwright environment | |
| run: npx playwright install | |
| - name: run tests | |
| run: npm run test:e2e | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: failures | |
| path: ui/e2e/failure_output |