-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (56 loc) · 1.69 KB
/
Copy pathbuild-test.yml
File metadata and controls
72 lines (56 loc) · 1.69 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Build & Test
on:
push:
branches-ignore: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Test
strategy:
matrix:
# 22 tracks the previous Node.js LTS line; pnpm/setup has no "previous LTS" alias, so bump this manually when Node.js LTS rotates
node_version: [22, lts, latest]
package:
- "@forward-software/react-auth"
- "@forward-software/react-auth-google"
- "@forward-software/react-auth-apple"
fail-fast: false
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup pnpm & Node.js
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
with:
runtime: node@${{ matrix.node_version }}
cache: true
install: false
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Test package
run: pnpm --filter "${{ matrix.package }}" test
build:
name: Build
strategy:
matrix:
package:
- "@forward-software/react-auth"
- "@forward-software/react-auth-google"
- "@forward-software/react-auth-apple"
fail-fast: false
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup pnpm & Node.js
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
with:
runtime: node@lts
cache: true
install: false
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Build package
run: pnpm --filter "${{ matrix.package }}" build