Skip to content

ci: test

ci: test #7

Workflow file for this run

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@v3
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build
run: ./gradlew build
- name: Run tests
run: ./gradlew test
format:
strategy:
matrix:
node-version: [ 20.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Check format
run: ./gradlew format