-
Notifications
You must be signed in to change notification settings - Fork 915
46 lines (39 loc) · 1.04 KB
/
ci.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
name: 'ci'
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
unit-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false
name: "Unit Test: ${{ matrix.os }}"
steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Set node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
- run: pnpm install
- name: Run unit tests
run: pnpm run test
- name: Set up webpack 5 tests
run: npx json -f package.json -I -e "this.resolutions = {}, this.resolutions.webpack = '^5.0.0', this.devDependencies.webpack = '^5.0.0' "
- name: Install webpack 5
run: pnpm install --no-frozen-lockfile
- name: Run unit tests for webpack 5
run: pnpm run test && pnpm run test:match-resource