This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
chore(deps): update github/codeql-action action to v3 #293
This file contains 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 Web UI | |
on: | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
- "**.jpg" | |
- "**.png" | |
- "**.gif" | |
- "**.svg" | |
- "adr/**" | |
- "docs/**" | |
- "CODEOWNERS" | |
permissions: | |
contents: read | |
# Abort prior jobs in the same workflow / PR | |
concurrency: | |
group: e2e-ui-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
# Have to run early for now since UI tests are a little brittle around cluster state | |
- name: Setup K3d | |
uses: ./.github/actions/k3d | |
- name: Setup golang | |
uses: ./.github/actions/golang | |
- name: Setup NodeJS | |
uses: ./.github/actions/node | |
- name: Build binary and zarf packages | |
uses: ./.github/actions/packages | |
- name: Cache browsers | |
uses: actions/cache@v3 | |
with: | |
path: "~/.cache/ms-playwright/" | |
key: ${{ runner.os }}-browsers | |
- name: Ensure playright is installed | |
run: npx --prefix src/ui playwright install | |
- name: Run UI tests | |
run: make test-ui | |
- name: Save logs | |
if: always() | |
uses: ./.github/actions/save-logs | |
- name: Save playright logs | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: src/ui/playwright-report/ | |
retention-days: 30 |