-
-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (49 loc) · 1.3 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
root:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Line endings
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Test
run: yarn test
examples:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["9.x", "10.x", "12.x", "13.x"]
container: cypress/browsers:node18.12.0-chrome107
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Cypress ${{ matrix.version }}
run: |
yarn --cwd examples/${{ matrix.version }} install --frozen-lockfile
yarn --cwd examples/${{ matrix.version }} cy:run
- uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: artifacts
path: |
**/screenshots/**/*
**/videos/**/*