-
Notifications
You must be signed in to change notification settings - Fork 905
40 lines (31 loc) · 1.03 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
name: Pull requests
on:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 'current'
- 'lts/*'
name: Lint, Build, and 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: Setup Solana Test Validator
id: start-test-validator
uses: ./.github/workflows/actions/setup-validator
- name: Lint, Build, and Test
uses: ./.github/workflows/actions/lint-build-and-test
- name: Build Docs
# We run this step in the context of PRs to make sure that the change does not prevent
# the docs from being built.
run: pnpm compile:docs
- name: Stop Test Validator
if: always() && steps.start-test-validator.outcome == 'success'
run: kill ${{ steps.start-test-validator.outputs.pid }}