|
7 | 7 | branches: [master, develop]
|
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - install: |
| 10 | + lint: |
11 | 11 | runs-on: ubuntu-latest
|
12 | 12 | strategy:
|
13 | 13 | matrix:
|
14 |
| - node-version: [16] |
| 14 | + node-version: ['lts/*'] |
15 | 15 | steps:
|
16 | 16 | - uses: actions/checkout@v2
|
17 |
| - - name: Use Node.js ${{ matrix.node-version }} |
| 17 | + - name: Setup Node.js ${{ matrix.node-version }} |
18 | 18 | uses: actions/setup-node@v2
|
19 | 19 | with:
|
20 | 20 | node-version: ${{ matrix.node-version }}
|
21 | 21 | cache: 'npm'
|
22 |
| - - run: npm install |
| 22 | + - name: Install dependencies |
| 23 | + run: npm ci --ignore-scripts |
| 24 | + - name: Lint |
| 25 | + run: npm run lint |
23 | 26 |
|
24 |
| - lint: |
25 |
| - needs: install |
26 |
| - runs-on: ubuntu-latest |
| 27 | + test-jest: |
| 28 | + runs-on: ${{ matrix.os }} |
27 | 29 | strategy:
|
| 30 | + fail-fast: false |
28 | 31 | matrix:
|
29 |
| - node-version: [16] |
| 32 | + node-version: ['lts/*'] |
| 33 | + os: ['macos-latest', 'ubuntu-latest', 'windows-latest'] |
30 | 34 | steps:
|
31 | 35 | - uses: actions/checkout@v2
|
32 |
| - - name: Use Node.js ${{ matrix.node-version }} |
| 36 | + - name: Setup Node.js ${{ matrix.node-version }} |
33 | 37 | uses: actions/setup-node@v2
|
34 | 38 | with:
|
35 | 39 | node-version: ${{ matrix.node-version }}
|
36 | 40 | cache: 'npm'
|
37 |
| - - name: Lint |
38 |
| - run: npm run lint |
| 41 | + - name: Install dependencies |
| 42 | + run: npm ci --ignore-scripts |
| 43 | + - name: Unit Tests |
| 44 | + run: npm run test:unit -- -ci |
| 45 | + - name: Integration Tests |
| 46 | + run: npm run test:integration -- -ci |
39 | 47 |
|
40 |
| - test: |
41 |
| - needs: install |
42 |
| - runs-on: ${{ matrix.os }} |
| 48 | + test-playwright: |
| 49 | + runs-on: ubuntu-latest |
43 | 50 | strategy:
|
44 | 51 | matrix:
|
45 |
| - node-version: [16] |
46 |
| - os: ['macos-latest', 'ubuntu-latest', 'windows-latest'] |
| 52 | + node-version: ['lts/*'] |
47 | 53 | steps:
|
48 | 54 | - uses: actions/checkout@v2
|
49 |
| - - name: Use Node.js ${{ matrix.node-version }} |
| 55 | + - name: Setup Node.js ${{ matrix.node-version }} |
50 | 56 | uses: actions/setup-node@v2
|
51 | 57 | with:
|
52 | 58 | node-version: ${{ matrix.node-version }}
|
53 | 59 | cache: 'npm'
|
54 |
| - - name: Bootstrap |
55 |
| - run: npm run bootstrap |
56 |
| - - name: Unit Tests (Jest) |
57 |
| - run: npm run test:unit -- -ci --runInBand |
58 |
| - - name: Integration Tests (Jest) |
59 |
| - run: npm run test:integration -- -ci --runInBand |
| 60 | + - name: Install dependencies |
| 61 | + run: npm ci --ignore-scripts |
60 | 62 | - name: Install Playwright
|
61 | 63 | run: npx playwright install --with-deps
|
62 | 64 | - name: E2E Tests (Playwright)
|
63 | 65 | run: npm run test:e2e
|
64 |
| - - uses: actions/upload-artifact@v2 |
| 66 | + - name: Store artifacts |
| 67 | + uses: actions/upload-artifact@v2 |
65 | 68 | if: failure()
|
66 | 69 | with:
|
67 | 70 | name: ${{ matrix.os }}-${{ matrix.node-version }}-artifacts
|
|
0 commit comments