Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Update action to use node20 #486

Update action to use node20

Update action to use node20 #486

Workflow file for this run

name: 'Test'
on:
pull_request:
jobs:
test: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- name: Checkout Gradle Build Cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/wrapper/dists/**/gradle*.zip
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
gradle-${{ runner.os }}-
- uses: actions/checkout@v4
- name: Set Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: |
11
15
17
- run: |
npm install
- run: |
npm run all
action-test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- name: Checkout Gradle Build Cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/wrapper/dists/**/gradle*.zip
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
gradle-${{ runner.os }}-
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: |
11
15
17
- name: Test Single Module Project in root
uses: ./
with:
use-gradlew: false
gradle-build-module: |-
:
gradle-build-configuration: |-
compileClasspath
- name: Test Multi Module Project in subfolder
uses: ./
with:
gradle-project-path: |-
gradle-example
gradle-build-module: |-
:app
:simple-app
:library-parent-parent
gradle-build-configuration: |-
debugCompileClasspath
gradle-build-configuration-mapping: |-
:library-child-2|compileClasspath
sub-module-mode: 'INDIVIDUAL_DEEP'
- name: Test Multi Module Project in subfolder - Without configuration filter
uses: ./
with:
gradle-project-path: |-
gradle-example
gradle-build-module: |-
:app
sub-module-mode: 'INDIVIDUAL_DEEP'