-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (40 loc) · 1.01 KB
/
nx-branch.yaml
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
46
name: branch
on:
#we need to keep on push as target because of this issue https://github.com/orgs/community/discussions/65321
push:
branches:
- '**'
- '!main'
permissions:
actions: read
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
- uses: nrwl/nx-set-shas@v4
- run: |
echo "BASE: ${{ env.NX_BASE }}"
echo "HEAD: ${{ env.NX_HEAD }}"
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: install python tools
run: |
pip install poetry
- name: Set up specific jdk
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 21
- run: npx nx affected -t build --parallel=1