Skip to content

Commit

Permalink
Create app-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
neha-puraswani authored Oct 26, 2023
1 parent 011b767 commit b626dcf
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/app-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
workflow_dispatch:
pull_request:
paths:
- 'src/**'

permissions:
id-token: write
statuses: write
checks: write
# may also be read
contents: write
pull-requests: write
actions: write

jobs:
test-app:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Setup .NET Core # Required to execute ReportGenerator
uses: actions/setup-dotnet@v3
if: success() || failure()
with:
dotnet-version: 6.x
dotnet-quality: 'ga'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Test app
run: ./gradlew test

0 comments on commit b626dcf

Please sign in to comment.