Skip to content

Commit

Permalink
Adds Github workflow for Gradle build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
stigi committed Oct 3, 2024
1 parent 570a2ca commit 9e5338c
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI with Gradle

on:
push:
branches: [ "main" ]
pull_request:

jobs:
build-and-test:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Adding Google Services
env:
DATA: ${{ secrets.GOOGLE_SERVICES }}
run: echo $DATA | base64 -di > ./example/google-services.json

- name: Build with Gradle Wrapper
run: ./gradlew build

- name: Test with Gradle Wrapper
run: ./gradlew test


dependency-submission:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4

0 comments on commit 9e5338c

Please sign in to comment.