Added the JavaFX bundling code to the Greenfoot side (previously was … #157
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: Build and run tests | |
on: [push,pull_request] | |
jobs: | |
Build-And-Run-Tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Load .env file | |
uses: xom9ikk/dotenv@v2 | |
- name: Install Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ env.java_version }} | |
java-package: jdk | |
architecture: x64 | |
- name: Run Xvfb | |
run: | | |
sudo apt-get update | |
sudo apt-get install xvfb icewm | |
ls ${{ github.workspace }} | |
cd ${{ github.workspace }} | |
Xvfb :42 & | |
sleep 5 | |
DISPLAY=:42.0 icewm & | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@859c33240bd026ce8d5f711f5adcc65c2f8eafc1 | |
- name: Gradle Build and Test | |
uses: gradle/gradle-build-action@0842a550d10f5211be8c8295f6888889e1fca291 | |
env: | |
DISPLAY: ":42.0" | |
with: | |
arguments: build test -Pheadless=false --info --stacktrace --no-daemon | |
- name: Check copyright | |
run: bash check-copyright.sh |