This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
Late check and simple TestRunner #15
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 | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: | | |
!contains(github.event.head_commit.message, '[ci skip]') | |
steps: | |
- name: checkout repository | |
uses: actions/[email protected] | |
- name: validate gradle wrapper | |
uses: gradle/[email protected] | |
- name: setup jdk 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: gradle | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: build | |
run: | | |
./gradlew build | |
run_tests: | |
uses: constellation-mc/actions/.github/workflows/mc-tests.yml@main | |
with: | |
java: 17 | |
client_task: runClient | |
server_task: runServer | |
packages: | |
needs: | |
- build | |
- run_tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/[email protected] | |
- name: validate gradle wrapper | |
uses: gradle/[email protected] | |
- name: setup jdk 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: gradle | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./gradlew publish |