Skip to content

Instantly share code, notes, and snippets.

@jmfayard
Created September 16, 2020 12:56
Show Gist options
  • Save jmfayard/627f0b060be431b975ced6aeb556d473 to your computer and use it in GitHub Desktop.
Save jmfayard/627f0b060be431b975ced6aeb556d473 to your computer and use it in GitHub Desktop.
# .github/workflows/runOnGitHub.yml
# GitHub Actions documentation
# => https://docs.github.com/en/actions
name: runOnGitHub
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: 8
# Execute Gradle commands in GitHub Actions workflows
# => https://github.com/marketplace/actions/gradle-command
- uses: eskatos/gradle-command-action@v1
with:
arguments: runOnGitHub
wrapper-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment