Attempt to use ubuntu instead of macos for running UI tests #16
Workflow file for this run
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: Gradle Wrapper Validation Example | |
# Will trigger on single in this repository for example purposes | |
# But generally this would go in your push/commit pipelines | |
on: | |
push: | |
branches: | |
- "feature/gradle-wrapper-validation-example" | |
tags: | |
- '*' | |
jobs: | |
gradle_wrapper_validation: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
command: .github/workflows/validate_gradle.sh | |
- os: macos-latest | |
command: .github/workflows/validate_gradle.sh | |
- os: windows-latest | |
command: sh .github/workflows/validate_gradle.sh | |
steps: | |
- uses: actions/checkout@v4 | |
# Validate Gradle Wrapper (via GitHub Actions) | |
- uses: gradle/wrapper-validation-action@v2 | |
# Validate Gradle Wrapper (via our own script) | |
# If we don't use GitHub Actions (e.g. we are using Jenkins or TeamCity etc.), | |
# we might still use our own script to validate that the wrapper is valid | |
- name: Validate Gradle Wrapper | |
run: ${{ matrix.command }} | |
- name: set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'gradle' | |
- name: Lint & Unit Test | |
run: ./gradlew clean lint test |