-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.15 KB
/
test.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
name: Install & prepare
on: [push, pull_request]
jobs:
InstallPrepare:
name: Install & prepare
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
node_version: [18, 20.5.1]
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Use Node ${{matrix.node_version}}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node_version }}
- uses: oven-sh/setup-bun@v1
- name: Cache pnpm modules
uses: actions/cache@v3
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node_version }}-
- name: install pnpm
run: npm i pnpm@latest -g
- name: Install Dependencies & prepare
run: pnpm i
- name: Test
run: pnpm test