Testing Github Actions CI
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: Test & Push BUilds
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
buildJava14:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- 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
|
||||
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}
|
||||
Reference in New Issue
Block a user