mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-08 14:24:52 +07:00
26 lines
731 B
YAML
26 lines
731 B
YAML
name: Tests
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
buildJava14:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 14
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 14
|
|
- name: Run unit tests
|
|
run: ./gradlew test
|
|
- name: Trigger BE build
|
|
if: ${{ github.repository == 'Anuken/Mindustry' }}
|
|
run: |
|
|
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
|
|
cd ../MindustryBuilds
|
|
BNUM=$(($GITHUB_RUN_NUMBER + 20000))
|
|
git tag ${BNUM}
|
|
git config --global user.name "Build Uploader"
|
|
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryBuilds ${BNUM}
|