Mindustry/.github/workflows/push.yml

26 lines
706 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: |
2020-11-20 07:32:27 +07:00
echo "Cloning..."
2020-11-20 06:53:02 +07:00
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
2020-11-20 07:32:27 +07:00
echo "Done cloning."
2020-11-20 06:53:02 +07:00
cd ../MindustryBuilds
git tag ${GITHUB_RUN_NUMBER}
git config --global user.name "Build Uploader"
git push https://Anuken:${{ secrets.GITHUB_TOKEN }}@github.com/Anuken/MindustryBuilds ${GITHUB_RUN_NUMBER}