Apktool/.github/workflows/test.yml
Connor Tumbleson a2a79404b8
GitHub Action (To retire Travis) (#2401)
* feat: attempt at github action workflow

* build: run on any push/branch (github action)

* fix: drop 32bit and use proper windows variable

* fix: add cache system for gradle

* fix: only pushes (not prs)

* fix: proper windows command

* fix: bye bye travis (thanks for all the fish)

* style: shorten name of lanes

* style: this is jdk, not jvm
2020-09-13 12:28:35 -04:00

33 lines
1.0 KiB
YAML

name: CI
on: [push]
jobs:
build-and-test-with-Java-8-and-later:
name: Build/Test (JDK ${{ matrix.java }}, ${{ matrix.os }})
strategy:
fail-fast: false
max-parallel: 10
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [8, 9, 10, 11, 12, 13, 14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build and test
run: ./gradlew.bat build shadowJar proguard
if: startsWith(matrix.os, 'windows') == true
- name: Build and test
run: ./gradlew build shadowJar proguard
if: startsWith(matrix.os, 'windows') != true