Skip to content

Commit

Permalink
Setup matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev committed Jul 2, 2023
1 parent 813985a commit 7387306
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5

strategy:
matrix:
include:
- mcVersion: '1.16.5'
javaVersion: '16'
- mcVersion: '1.17.1'
javaVersion: '17'
- mcVersion: '1.18.2'
javaVersion: '18'
- mcVersion: '1.19.4'
javaVersion: '19'
- mcVersion: '1.20.1'
javaVersion: '20'

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -17,13 +31,13 @@ jobs:
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-version: ${{ matrix.javaVersion }}
java-package: jdk
architecture: x64

- name: Download latest paper
- name: Download ${{ matrix.mcVersion }} Paper
run: |
VERSION=$(curl -s https://api.papermc.io/v2/projects/paper | jq '.versions[-1]' -r)
VERSION="${{ matrix.mcVersion }}"
BUILD_JAR=$(curl -s "https://api.papermc.io/v2/projects/paper/versions/$VERSION/builds" | jq '.builds[-1] | "\(.build) \(.downloads.application.name)"' -r)
BUILD=$(echo "$BUILD_JAR" | awk '{print $1}')
JAR_FILE=$(echo "$BUILD_JAR" | awk '{print $2}')
Expand Down

0 comments on commit 7387306

Please sign in to comment.