mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
Test across java and gradle versions with github actions. (#218)
* Experiment with github actions * Fix? * another fix * Fix? * Change github actions run args * Tried and tested is better right? * spaces spaces spaces * revert * info * Just 4.9 * Fixes to support building on newer gradle versions * Forward log output and run tests on runtime gradle version * Remove travis * De-duplicate * Remove daily action, doesnt seem to work so well.
This commit is contained in:
30
.github/workflows/test-push.yml
vendored
Normal file
30
.github/workflows/test-push.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Run Tests
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
gradle:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04, windows-latest]
|
||||
gradle-version: [4.9, 4.10.2, 5.6.4, 6.5]
|
||||
java-version: [1.8, 11, 14]
|
||||
exclude: # Dont run older gradle versions on newer java
|
||||
- java-version: 14
|
||||
gradle-version: 4.9
|
||||
- java-version: 14
|
||||
gradle-version: 4.10.2
|
||||
- java-version: 14
|
||||
gradle-version: 5.6.4
|
||||
- java-version: 11
|
||||
gradle-version: 4.9
|
||||
- java-version: 11
|
||||
gradle-version: 4.10.2
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java-version }}
|
||||
- uses: eskatos/gradle-command-action@v1
|
||||
with:
|
||||
gradle-version: ${{ matrix.gradle-version }}
|
||||
arguments: build check test --stacktrace
|
||||
Reference in New Issue
Block a user