Skip to content

Commit 1846530

Browse files
committed
chore: test github workflow
1 parent 14d425d commit 1846530

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Plugin Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macOS-latest, windows-latest]
15+
node-version: [12, '*']
16+
exclude:
17+
- os: macOS-latest
18+
node-version: 12
19+
- os: windows-latest
20+
node-version: 12
21+
fail-fast: false
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
check-latest: true
30+
- name: NPM Install
31+
run: npm ci
32+
- name: Linting
33+
run: npm run format:ci
34+
if: "${{ matrix.node-version == '*' }}"
35+
- name: Run tests against next@latest
36+
run: npm test
37+
- name: Install Next.js Canary
38+
run: npm install -D next@canary --legacy-peer-deps
39+
- name: Run tests against next@canary
40+
run: npm test

0 commit comments

Comments
 (0)