From 289062ba3d171a7c749101cb482691e66a539107 Mon Sep 17 00:00:00 2001 From: DanVanAtta Date: Sat, 19 Jul 2025 16:43:42 -0700 Subject: [PATCH 1/2] Github action: add action to run 'verify' on pull request branches --- .github/workflows/pull-request.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..46c2aa6 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,17 @@ +# Runs all build checks on any pull request or merges to master +name: Pull Request +on: + pull_request: +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + - name: Run Build Checks + run: make verify + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 160c9eaf9cdc9fc1619bfd05784cb6e64a04c792 Mon Sep 17 00:00:00 2001 From: DanVanAtta Date: Sat, 19 Jul 2025 16:44:50 -0700 Subject: [PATCH 2/2] Change build target -> testForPr --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 46c2aa6..c2479c0 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -12,6 +12,6 @@ jobs: distribution: temurin java-version: 21 - name: Run Build Checks - run: make verify + run: make testForPr env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}