Skip to content

Commit

Permalink
Add test workflows
Browse files Browse the repository at this point in the history
* Add a basic workflow not using the Gradle GH action
* Add a basic workflow using the Gradle GH action but not doing matrix
testing

Both are only run by hand
  • Loading branch information
ljacomet committed Oct 2, 2023
1 parent c4d327d commit ffcd59c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gradle-basic-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build
on: workflow_dispatch
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'master' branch.
# Builds on other branches will only read existing entries from the cache.
cache-read-only: ${{ github.ref != 'refs/heads/master' }}

- name: Execute Gradle build
run: ./gradlew build
14 changes: 14 additions & 0 deletions .github/workflows/gradle-basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Basic
on: workflow_dispatch
jobs:
gradle:
runs-on: unbuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- name: Execute Gradle build
run: ./gradlew build

0 comments on commit ffcd59c

Please sign in to comment.