Skip to content

Commit

Permalink
Update 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 a8e4647 commit 384ff71
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/app-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
name: App test
name: Test application (test + coverage)

on:
push:
branches: [ master ]
workflow_dispatch:
pull_request:
branches: [ master ]
paths:
- 'src/**'

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

jobs:
test-app:
Expand All @@ -22,16 +31,16 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- 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

Expand Down Expand Up @@ -70,4 +79,4 @@ jobs:
${{ github.workspace }}/build/reports/xml/jacoco
min-coverage-overall: 80
min-coverage-changed-files: 80
title: Coverage Report
title: Coverage Report

0 comments on commit 384ff71

Please sign in to comment.