Skip to content

Commit 366ed97

Browse files
authored
Bruker reusable workflow, for pull request (#2968)
1 parent 48a4f4e commit 366ed97

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed
+7-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Build Pull Request
2-
32
on:
43
pull_request:
54
paths-ignore:
@@ -8,24 +7,12 @@ on:
87
- '.gitignore'
98
- 'LICENSE'
109
- 'CODEOWNERS'
11-
- 'nais/**'
12-
- 'gradle/**'
13-
- 'nais/alerts/**'
14-
- '.github/workflows/deploy-alerts.yml'
1510

1611
jobs:
17-
Build:
18-
19-
runs-on: ubuntu-latest
20-
21-
steps:
22-
- uses: actions/checkout@v4
23-
- uses: actions/setup-java@v4
24-
with:
25-
java-version: 21
26-
distribution: temurin
27-
cache: gradle
28-
- name: Kjør tester & bygg JAR
29-
run: ./gradlew clean test shadowjar
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}
12+
test:
13+
uses: navikt/sif-gha-workflows/.github/workflows/gradle-test.yml@main
14+
permissions:
15+
contents: read
16+
secrets: inherit
17+
with:
18+
readertoken: false

0 commit comments

Comments
 (0)