51 lines
954 B
YAML
51 lines
954 B
YAML
name: Frontend Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- "app/**"
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- "app/**"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./app
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 9
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "latest"
|
|
cache: "pnpm"
|
|
cache-dependency-path: "./app/pnpm-lock.yaml"
|
|
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@v3
|
|
with:
|
|
version: "27.x"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Generate Proto
|
|
run: pnpm proto
|
|
|
|
- name: Install Playwright Browsers
|
|
run: npx playwright install --with-deps
|
|
|
|
- name: Run tests
|
|
run: pnpm test
|