Stop running pull request workflow on main

Instead of running the checks on `main`, I've opted to just rebase the current branch onto `main` as part of the workflow process so that I don't need to run checks twice, which starves CI resources and doubles the minutes I'd run tests on Firebase Test Lab
This commit is contained in:
William Brawner 2024-08-23 18:02:16 -06:00
parent 8ac6eb24a0
commit 9da4797070
Signed by: wbrawner
GPG key ID: 8FF12381C6C90D35

View file

@ -2,8 +2,6 @@ name: Build & Test
on: on:
pull_request: pull_request:
push:
branches: [ main ]
jobs: jobs:
validate: validate:
@ -11,6 +9,7 @@ jobs:
name: Validate name: Validate
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: git rebase origin/main
- name: set up JDK - name: set up JDK
uses: https://git.wbrawner.com/actions/setup-java@v4 uses: https://git.wbrawner.com/actions/setup-java@v4
with: with: