Correct Gradle action usage #120
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: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- uses: getgauge/setup-gauge@master | |
with: | |
gauge-plugins: java, html-report, xml-report | |
- uses: gradle/actions/setup-gradle@v3 | |
- name: Build with Gradle on ubuntu | |
if: matrix.os != 'windows-latest' | |
run: | | |
./gradlew plugin:build | |
./gradlew gaugeValidate gaugeDevRepeat | |
- name: Build with Gradle on windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
.\gradlew.bat plugin:build | |
.\gradlew.bat gaugeDevRepeat |