|
4 | 4 | pull_request: |
5 | 5 | jobs: |
6 | 6 | full: |
7 | | - name: Node.js 16 Full |
| 7 | + name: Node.js 17 Full |
8 | 8 | runs-on: ubuntu-latest |
9 | 9 | steps: |
10 | 10 | - name: Checkout the repository |
11 | 11 | uses: actions/checkout@v2 |
| 12 | + - name: Install pnpm |
| 13 | + uses: pnpm/action-setup@v2 |
| 14 | + with: |
| 15 | + version: latest |
12 | 16 | - name: Install Node.js |
13 | 17 | uses: actions/setup-node@v2 |
14 | 18 | with: |
15 | | - node-version: 16 |
16 | | - cache: yarn |
| 19 | + node-version: 17 |
| 20 | + cache: pnpm |
17 | 21 | - name: Install dependencies |
18 | | - run: yarn install --frozen-lockfile |
| 22 | + run: pnpm install --frozen-lockfile --ignore-scripts |
19 | 23 | - name: Run tests |
20 | | - run: yarn test |
| 24 | + run: pnpm test |
21 | 25 | env: |
22 | 26 | FORCE_COLOR: 2 |
23 | 27 | short: |
24 | 28 | runs-on: ubuntu-latest |
25 | 29 | strategy: |
26 | 30 | matrix: |
27 | 31 | node-version: |
| 32 | + - 16 |
28 | 33 | - 14 |
29 | 34 | - 12 |
30 | | - - 10 |
31 | 35 | name: Node.js ${{ matrix.node-version }} Quick |
32 | 36 | steps: |
33 | 37 | - name: Checkout the repository |
34 | 38 | uses: actions/checkout@v2 |
| 39 | + - name: Install pnpm |
| 40 | + uses: pnpm/action-setup@v2 |
| 41 | + with: |
| 42 | + version: latest |
35 | 43 | - name: Install Node.js ${{ matrix.node-version }} |
36 | 44 | uses: actions/setup-node@v2 |
37 | 45 | with: |
38 | 46 | node-version: ${{ matrix.node-version }} |
39 | | - cache: yarn |
| 47 | + cache: pnpm |
| 48 | + - name: Install dependencies |
| 49 | + run: pnpm install --frozen-lockfile --ignore-scripts |
| 50 | + - name: Run unit tests |
| 51 | + run: pnpm unit |
| 52 | + env: |
| 53 | + FORCE_COLOR: 2 |
| 54 | + old: |
| 55 | + runs-on: ubuntu-latest |
| 56 | + name: Node.js 10 Quick |
| 57 | + steps: |
| 58 | + - name: Checkout the repository |
| 59 | + uses: actions/checkout@v2 |
| 60 | + - name: Install pnpm |
| 61 | + uses: pnpm/action-setup@v1 |
| 62 | + with: |
| 63 | + version: 3 |
| 64 | + env: |
| 65 | + ACTIONS_ALLOW_UNSECURE_COMMANDS: true |
| 66 | + - name: Install Node.js 10 |
| 67 | + uses: actions/setup-node@v2 |
| 68 | + with: |
| 69 | + node-version: 10 |
| 70 | + - name: Install dependencies |
| 71 | + run: pnpm install --frozen-lockfile --ignore-scripts |
| 72 | + - name: Run unit tests |
| 73 | + run: pnpm unit |
| 74 | + env: |
| 75 | + FORCE_COLOR: 2 |
| 76 | + windows: |
| 77 | + runs-on: windows-latest |
| 78 | + name: Windows Quick |
| 79 | + steps: |
| 80 | + - name: Checkout the repository |
| 81 | + uses: actions/checkout@v2 |
| 82 | + - name: Install pnpm |
| 83 | + uses: pnpm/action-setup@v2 |
| 84 | + with: |
| 85 | + version: latest |
| 86 | + - name: Install Node.js LTS |
| 87 | + uses: actions/setup-node@v2 |
| 88 | + with: |
| 89 | + node-version: 16 |
| 90 | + cache: pnpm |
40 | 91 | - name: Install dependencies |
41 | | - run: yarn install --frozen-lockfile --ignore-engines |
| 92 | + run: pnpm install --frozen-lockfile --ignore-scripts |
42 | 93 | - name: Run unit tests |
43 | | - run: npx jest |
| 94 | + run: pnpm unit |
44 | 95 | env: |
45 | 96 | FORCE_COLOR: 2 |
0 commit comments