Skip to content

Commit

Permalink
Add workflow for external pr [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Dec 27, 2024
1 parent 66ebb33 commit 35f75ad
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build external pull request
on:
pull_request:
branches:
- master
jobs:
maven-verify:
if: github.repository_owner != 'entur'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Copy maven settings
run: |
wget https://raw.githubusercontent.com/entur/ror-maven-settings/master/.m2/settings.xml -O .github/workflows/settings.xml
- uses: actions/setup-java@v4
with:
java-version: 17.0.13
distribution: liberica
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-maven-
${{ runner.os }}-
- name: Run maven build
run: mvn verify -s .github/workflows/settings.xml

0 comments on commit 35f75ad

Please sign in to comment.