Skip to content

Run tests separately #14

Run tests separately

Run tests separately #14

Workflow file for this run

name: Build Gradle project
on:
push:
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: '0.13.0'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: Build
run: |
./gradlew assemble
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: library
path: build/libs/file-events.jar
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: Download library
uses: actions/download-artifact@v4
with:
name: library
path: build/remote/file-events.jar
- run: |
ls -lR build/remote
- name: Test
run: |
./gradlew externalTest
- name: Upload build reports
uses: actions/upload-artifact@v4
if: always()
with:
name: build-reports
path: build/reports/