mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 03:14:09 +00:00
62 lines
1.9 KiB
YAML
62 lines
1.9 KiB
YAML
name: Frontend mobile
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- 'frontend/**'
|
|
- '.github/workflows/frontend-mobile.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: frontend
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: |
|
|
sudo bash ../scripts/ci-ubuntu-https.sh
|
|
python ../scripts/ci-retry.py apt npx --no-install playwright install-deps chromium
|
|
npx --no-install playwright install chromium
|
|
- run: npm run test:mobile
|
|
|
|
feed-browsers:
|
|
name: Feed in Firefox and WebKit
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: frontend
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
cache-dependency-path: frontend/package-lock.json
|
|
- run: npm ci
|
|
- name: Install locked browser engines
|
|
run: |
|
|
sudo bash ../scripts/ci-ubuntu-https.sh
|
|
python ../scripts/ci-retry.py apt npx --no-install playwright install-deps firefox webkit
|
|
npx --no-install playwright install firefox webkit
|
|
- run: npm run test:feed-browsers
|
|
- name: Keep feed geometry on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
|
|
with:
|
|
name: feed-layout-geometry
|
|
path: frontend/test-results/**/feed-geometry.json
|
|
if-no-files-found: ignore
|
|
retention-days: 7
|