Skip to content

Yet another fix for the location of the Greenfoot common classes and … #158

Yet another fix for the location of the Greenfoot common classes and …

Yet another fix for the location of the Greenfoot common classes and … #158

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