refactor: bump Shared-Java to 1.0.2; add: CraftTweaker to libs; #78
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: Run gradle tests | |
on: [ push, pull_request, workflow_dispatch ] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.event_name }}-${{ github.ref }}-gradle | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDKs | |
uses: actions/setup-java@v4 | |
with: | |
java-version: | | |
16 | |
8 | |
distribution: 'zulu' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run all tests headless | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: ./gradlew test --info --stacktrace | |
env: | |
MCIGT_HAS_DISPLAY: true |