-
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.05 KB
/
tests.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
name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
branches: [ main]
defaults:
run:
working-directory: .
jobs:
build:
strategy:
matrix:
node-version: [ 18, 20 ]
os: [ubuntu-22.04, ubuntu-20.04, windows-latest, macos-12, macos-11]
runs-on: ${{ matrix.os }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: Checkout repository # v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install PNPM # v2.4.0
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598
with:
version: '8.9.0'
- name: Use Node.js ${{ matrix.node-version }} # v4.0.2
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
# All
- name: (All) Install dependencies
run: pnpm install --frozen-lockfile
- name: (All) Run All Tasks
run: pnpm turbo all