-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 891 Bytes
/
argos.yml
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
40
41
42
43
name: Argos CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
visual-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps --force
# - name: Run server
# run: npm start > server.log 2>&1 &
#
# - name: Wait for server to start
# run: sleep 10
#
# - name: Wait for server readiness
# run: |
# for i in {1..30}; do
# curl -f http://localhost:3000 && break || sleep 2;
# done
- name: Run visual tests
run: npm run argos-chrome