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