Merge pull request #4407 from dita-ot/feature/refactor-java #220
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: Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Check formatting | |
run: | | |
npm ci | |
npm run check-fmt | |
- name: Build with Gradle | |
run: ./gradlew --info --stacktrace --no-daemon | |
- name: Run unit tests | |
run: ./gradlew test --info --stacktrace --no-daemon | |
- name: Run end to end tests | |
run: ./gradlew e2eTest --info --stacktrace --no-daemon | |
- name: Run integration tests | |
run: ./gradlew integrationTest --info --stacktrace --no-daemon |