Skip to content

Commit

Permalink
Add GitHub Actions build workflow for checking pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Mar 19, 2024
1 parent e70cb07 commit 5971d86
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# mirror of the Jenkins pipeline, used for requiring PRs to build successfully before merging
# this uses Actions because it's easier to integrate with GitHub PRs, and to allow running the build on forks

name: Build pull request

on:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17.0.1"
- uses: gradle/actions/setup-gradle@v3

- name: Clean
run: |
chmod +x gradlew
./gradlew clean
- name: Build
run: ./gradlew build

- name: Run Datagen
run: ./gradlew runAllDatagen

- name: Check Datagen
run: |
git add --intent-to-add .
git diff --name-only --exit-code -- ":!:*/src/generated/resources/.cache/*"

0 comments on commit 5971d86

Please sign in to comment.