-
Notifications
You must be signed in to change notification settings - Fork 87
40 lines (36 loc) · 1011 Bytes
/
test.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: Plugin Tests
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [10.13.0, '*']
exclude:
- os: macOS-latest
node-version: 10.13.0
- os: windows-latest
node-version: 10.13.0
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- run: npm ci
name: NPM Install
- name: Linting
run: npm run format:ci
if: "${{ matrix.node-version == '*' }}"
- name: Run tests against next@latest
run: npm test
- name: Install Next.js Canary
run: npm install -D next@canary --legacy-peer-deps
- name: Run tests against next@canary
run: npm test