-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (42 loc) · 1.06 KB
/
dev-package-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
41
42
43
44
45
46
47
48
name: Dev_Package_Test
on:
schedule:
- cron: "0 0 * * 1"
pull_request:
paths:
- "package.json"
- ".github/workflows/dev-package-test.yml"
jobs:
test:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
node:
# Run tests on minimal version we support
- "12"
NPM_CLIENT:
- "yarn"
- "npm"
- "pnpm"
env:
INSTALL_PACKAGE: true
NPM_CLIENT: ${{ matrix.NPM_CLIENT }}
name: Test with ${{ matrix.NPM_CLIENT }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Install Client Package
if: matrix.NPM_CLIENT == 'pnpm'
run: npm install --global pnpm@5
- name: Run Tests
run: yarn test:dev-package --maxWorkers=2