Skip to content

Instantly share code, notes, and snippets.

@cortinico
Created November 2, 2020 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cortinico/1ada95fd04f04488a738c66a80beb97d to your computer and use it in GitHub Desktop.
Save cortinico/1ada95fd04f04488a738c66a80beb97d to your computer and use it in GitHub Desktop.
How-to Github Actions: Build Matrix - Example Detekt
jobs:
gradle:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
jdk: [8, 11, 14]
runs-on: ${{ matrix.os }}
env:
JDK_VERSION: ${{ matrix.jdk }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
...
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment