File: browser-testing.yml

package info (click to toggle)
node-lodash 4.17.23%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,840 kB
  • sloc: javascript: 33,817; makefile: 41
file content (39 lines) | stat: -rw-r--r-- 776 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI Browsers

on:
  push:
    branches: [ main ]
  pull_request:
    # Run on every PR, regardless of branch
    branches: [ '*' ]
  workflow_dispatch:

jobs:
  test-docs:
    name: Modern Browsers Test
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Install Node
        uses: actions/setup-node@v4
        with:
          node-version: '24'

      - name: Install dependencies
        run: |
          npm install
          npx playwright install --with-deps
          npm install -D @playwright/test@latest

      - name: Build project
        run: npm run build

      - name: Start server
        run: |
          npx http-server -p 9001 &
          sleep 2

      - name: Run Playwright tests
        run: npx playwright test