Skip to content

Commit 3c36a22

Browse files
committed
Run compilation and unit test pipeline as part of the PR to "main", but do not update coverage.
1 parent 1a0c131 commit 3c36a22

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+
name: Build and test
9+
10+
on:
11+
pull_request:
12+
branches: [ "main" ]
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v3
25+
with:
26+
java-version: '17'
27+
distribution: 'temurin'
28+
29+
- name: Build with Gradle
30+
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
31+
with:
32+
arguments: build

.github/workflows/gradle.yml renamed to .github/workflows/gradle-on-push-to-main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
66
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
77

8-
name: CI Build
8+
name: Build, test and update coverage badge
99

1010
on:
1111
push:
1212
branches: [ "main" ]
13+
pull_request:
14+
branches: [ "main" ]
1315

1416
permissions:
1517
contents: write

0 commit comments

Comments
 (0)