other: add tasks with gradle node plugin #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Domain build | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ "main", "develop", "release/**" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
# run on ubuntu, windows and macOS | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run build | |
run: ./gradlew build --info | |
- name: Run tests | |
run: ./gradlew domain:test --info | |
format: | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Check format | |
run: ./gradlew format --info |