-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (40 loc) · 1.05 KB
/
build.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
name: build
on:
push:
branches:
- '**'
jobs:
validation:
name: "gradle-wrapper-validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
build:
name: "gradle-build"
needs: validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'adopt'
- name: Setup and Execute Gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: build -s --scan
env:
# NOTE: using global token because we're pulling dependencies from different repositories
GITHUB_TOKEN: ${{ secrets.GH_PACKAGES_REGISTRY }}
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
registry-url: 'https://npm.pkg.github.com/'
- name: Build NPM
run: |
npm ci
npm run build