-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (36 loc) · 1.08 KB
/
pull_request_checks.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
---
name: Lint, Build, and Test
on:
push:
branches:
- main
pull_request: null
env:
# This should match the hostname of the endpoint used to record the pollyjs test
# This shouldn't be a valid endpoint URL, the auth token should be redacted
QUICKNODE_ENDPOINT_URL: ${{ secrets.QUICKNODE_ENDPOINT_URL }}
QUICKNODE_SOLANA_ENDPOINT_URL: ${{ secrets.QUICKNODE_SOLANA_ENDPOINT_URL }}
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16.x
- 18.x
- 20.x
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: nrwl/nx-set-shas@v3
- run: yarn install --immutable
- run: npx nx workspace-lint
- run: npx nx format:check
- run: npx nx affected --target=lint --parallel=3
- run: npx nx affected --target=build --parallel=3
- run: npx nx affected --target=test --parallel=3 --ci --code-coverage