Update JamesIves/github-pages-deploy-action action to v4.6.8 #316
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test" | |
# Only execute this workflow when a PR is opened or when something is pushed to the master branch | |
on: [push, pull_request] | |
jobs: | |
testBuilds: | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
java-version: [11,16,17] | |
# Set up OS | |
runs-on: ubuntu-latest | |
# Set up environment variables | |
env: | |
env: 'local' # Set to local, so it won't deploy the jar to the repos | |
steps: | |
# Checkout code | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# Setup java and maven | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: adopt | |
java-version: ${{ matrix.java-version }} | |
# Setup executable gradle | |
- name: Make Gradle executable | |
run: chmod +x gradlew | |
# Test building without dokka | |
- name: Build Jar with Java ${{ matrix.java-version }} | |
run: ./gradlew clean publish shadow -x dokkaHtml |