-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (43 loc) · 1.02 KB
/
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
49
50
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: "${{ matrix.os }}, Shell: ${{ matrix.shell }}"
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
strategy:
matrix:
include:
- os: ubuntu-latest
shell: bash
- os: windows-latest
shell: powershell
- os: windows-latest
shell: cmd
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
IS_CICD: true
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8.6.12
- name: Setup nodejs
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build All Packages
run: pnpm build
- name: Build CLI for testing
run: pnpm --filter '*cli*' build:test
- name: Test
run: pnpm --filter '*cli*' test