Skip to content

Commit 5eb34fd

Browse files
authored
Merge pull request #242 from entur/pr-workflow
Create PR workflow
2 parents 1201b9e + df91e18 commit 5eb34fd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/pr.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build PR
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
jobs:
7+
maven-package:
8+
if: "!contains(github.event.head_commit.message, 'ci skip')"
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-java@v4
15+
with:
16+
java-version: 17.0.13
17+
distribution: liberica
18+
- name: Cache Maven dependencies
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/.m2/repository
22+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
23+
restore-keys: |
24+
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
25+
${{ runner.os }}-maven-
26+
${{ runner.os }}-
27+
- name: Run maven build
28+
run: mvn package -PprettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm
29+
- name: codecov
30+
uses: codecov/codecov-action@v5
31+
with:
32+
files: ./target/site/jacoco/jacoco.xml

0 commit comments

Comments
 (0)