-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.17 KB
/
ci.yaml
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
51
52
53
54
name: "CI"
on:
push:
branches:
- "main"
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
test-dev-setup:
timeout-minutes: 15
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest ]
node_version: [21]
name: "runner (dev setup): node-${{ matrix.node_version }}, ${{ matrix.os }}"
steps:
- name: Get job name
run: |
echo "Job name is $GITHUB_JOB"
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: install pnpm
run: npm i pnpm@latest -g
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: ls
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
tree -L 3
elif [ "$RUNNER_OS" == "Windows" ]; then
dir -la . || exit 0
elif [ "$RUNNER_OS" == "macOS" ]; then
ls -la
fi
shell: bash
- name: Run CI
run: pnpm run ci