Files
CraterLib/.github/workflows/test-orbit-pr.yml
orbit-brancher[bot] 8d0311c988 [AUTO] Update readme and add orbit config (#8)
* Update readme and add orbit config

* Add PR Action to test automated PR's

* Add forgotten setupWorkspace task to action

* Make sure all branches are available in the CI

* Urgh. Make sure gradlew is executable

* [skip ci] Use self hosted runner

---------

Co-authored-by: root <orbit-brancher>
Co-authored-by: hypherionmc <hypherionmc@gmail.com>
2024-05-19 21:00:26 +02:00

50 lines
1.1 KiB
YAML

name: Test Orbit Auto PR
on:
pull_request:
branches:
- porting
jobs:
run-gradle-taks:
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch all branches and tags
run: git fetch --all
- name: Set Up JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Workspace
run: chmod +x ./gradle && ./gradlew setupWorkspace
- name: Test LTS Branches
run: |
for dir in dev/*/ ; do
if [ -d "$dir" ]; then
echo "Running Gradle build for $dir"
cd "$dir"
chmod +x ./gradlew
./gradlew build
cd -
fi
done