-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (35 loc) · 1.05 KB
/
pull-requests.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
name: Pull requests
on:
pull_request:
env:
# Among other things, opts out of Turborepo telemetry
# See https://consoledonottrack.com/
DO_NOT_TRACK: "1"
# Some tasks slow down considerably on GitHub Actions runners when concurrency is high
TURBO_CONCURRENCY: 1
jobs:
# Needed for grouping check-web3 strategies into one check for mergify
all-pr-checks:
runs-on: ubuntu-latest
needs: build-and-test
steps:
- run: echo "Done"
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- "current"
- "lts/*"
name: Build & Test on Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies
with:
version: ${{ matrix.node }}
- name: Build (with prebuild)
run: pnpm build # Don't add --concurrency here; it's already baked in
- name: Test
run: pnpm test # Don't add --concurrency here; it's already baked in