-
-
Notifications
You must be signed in to change notification settings - Fork 120
33 lines (33 loc) · 1.33 KB
/
build.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
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: ubuntu-latest, java: 11, params: "'-PtestedGradleVersion=6.9.4|7.6.3' pnpmTests" }
- {os: ubuntu-latest, java: 11, params: "'-PtestedGradleVersion=6.9.4|7.6.3' build" }
- {os: ubuntu-latest, java: 16, params: "'-PtestedGradleVersion=8.10.2' build pnpmTests"}
- {os: windows-latest, java: 11, params: "build pnpmTests" }
- {os: macos-latest, java: 11, params: "build pnpmTests" }
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.config.java }}
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
cache-read-only: ${{ github.event_name == 'pull_request' }}
- name: Build
run: ./gradlew --scan "-Pcom.github.gradle.node.predictivetestselection=${{ github.event_name == 'pull_request' }}" ${{ matrix.config.params }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}