-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 854 Bytes
/
pr-tests.yml
File metadata and controls
37 lines (30 loc) · 854 Bytes
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
name: PR Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- ".github/instructions/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup CI environment
uses: ./.github/actions/setup
- name: Run affected builds and tests
env:
CI: "true"
run: |
pnpm nx affected -t build test \
--base=${{ github.event.pull_request.base.sha }} --head=HEAD \
--output-style=stream \
--logger "console;verbosity=minimal"