Mindustry/.github/workflows/push.yml

25 lines
674 B
YAML
Raw Normal View History

2020-11-20 06:54:28 +07:00
name: Tests
2020-11-20 06:53:02 +07:00
on: [push]
jobs:
buildJava14:
runs-on: ubuntu-latest
steps:
2020-11-20 07:27:21 +07:00
- uses: actions/checkout@v2
2020-11-20 06:53:02 +07:00
- 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
run: |
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
cd ../MindustryBuilds
2020-11-20 23:26:49 +07:00
BNUM=$(($GITHUB_RUN_NUMBER + 20000))
git tag ${BNUM}
2020-11-20 06:53:02 +07:00
git config --global user.name "Build Uploader"
2020-11-20 23:26:49 +07:00
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryBuilds ${BNUM}