Skip to content

Build

Build #560

Workflow file for this run

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=${{ github.event_name == 'pull_request' }}" ${{ matrix.config.params }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}