-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
40 lines (33 loc) · 1.04 KB
/
main.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: test Node ${{ matrix.node }} Webpack ${{ matrix.webpack }} ${{ matrix.os }}
timeout-minutes: 15
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['10.x', '12.x', '14.x', '16.x', '18.x', '20.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
webpack: ['5']
steps:
- name: LF
run: git config --global core.autocrlf false
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: npm install --ignore-scripts --force --legacy-peer-deps
- name: Install Webpack ${{ matrix.webpack }}
run: npm install --ignore-scripts --force --legacy-peer-deps webpack@${{ matrix.webpack }}
- name: Test
run: npm test -- --forceExit || npm test -- --forceExit || npm test -- --forceExit