Skip to content

Commit 616c442

Browse files
committed
Simplify CI config
1 parent 20fd999 commit 616c442

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,14 @@ jobs:
5252
run: pnpm unit
5353
env:
5454
FORCE_COLOR: 2
55-
old12:
55+
old:
5656
runs-on: ubuntu-latest
57-
name: Node.js 12 Quick
58-
steps:
59-
- name: Checkout the repository
60-
uses: actions/checkout@v3
61-
- name: Install pnpm
62-
uses: pnpm/action-setup@v2
63-
with:
64-
version: "^6.0.0"
65-
- name: Install Node.js 10
66-
uses: actions/setup-node@v3
67-
with:
68-
node-version: 12
69-
- name: Install dependencies
70-
run: pnpm install --frozen-lockfile --ignore-scripts
71-
- name: Run unit tests
72-
run: pnpm unit
73-
env:
74-
FORCE_COLOR: 2
75-
old10:
76-
runs-on: ubuntu-latest
77-
name: Node.js 10 Quick
57+
strategy:
58+
matrix:
59+
node-version:
60+
- 12
61+
- 10
62+
name: Node.js ${{ matrix.node-version }} Quick
7863
steps:
7964
- name: Checkout the repository
8065
uses: actions/checkout@v3
@@ -84,10 +69,10 @@ jobs:
8469
version: 3
8570
env:
8671
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
87-
- name: Install Node.js 10
72+
- name: Install Node.js ${{ matrix.node-version }}
8873
uses: actions/setup-node@v3
8974
with:
90-
node-version: 10
75+
node-version: ${{ matrix.node-version }}
9176
- name: Install dependencies
9277
run: pnpm install --frozen-lockfile --ignore-scripts
9378
- name: Run unit tests

0 commit comments

Comments
 (0)