I am looking for some advice on how to create a workflow that will build a PR with the target branch merged. The general idea is to make sure that if the PR was merged into master it would build and tests would pass etc.
on: pull_request: types: [opened] branches: - master jobs: build: name: Build runs-on: macOS-latest steps: - name: Checkout uses: actions/checkout@v1 - name: Build run: xcodebuild ...
What I’m trying to do is make sure that master is merged into my PR branch “locally” (within the virtual environment that the action is running on) before building, running tests etc.
I would also like to make sure that this workflow is run whenever a new push to master happens on all open PRs. So whenever master changes we want to know if open PRs are still ok to merge. Hope this makes sense and apologies if I’m asking newb questions.