Skip to content

Commit

Permalink
first try for backend workflow on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSebastian committed Feb 21, 2024
1 parent 12ab047 commit 9cad9c1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lokaler Merge Workflow

on:
push:
paths:
- 'backend/**'
pull_request:
types: [opened, reopened]

jobs:
merge_locally:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Merge PR into target branch locally
run: git merge ${{ github.head_ref }}

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Run local tests
run: mvn --batch-mode --update-snapshots --no-transfer-progress -f backend/pom.xml verify

0 comments on commit 9cad9c1

Please sign in to comment.