Change approach again, use types to limit which pull requests trigger the event

This commit is contained in:
Josh de Leeuw 2025-01-17 11:37:20 -05:00 committed by GitHub
parent 14b2586db1
commit 236657da56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,12 @@
name: build name: build
on: [push, pull_request] on:
push:
pull_request:
types: [opened, reopened, ready_for_review, review_requested]
jobs: jobs:
test: test:
if: github.event_name == 'push' && !contains(github.ref, '/merge') || github.event_name == 'pull_request'
name: Build, lint, and test on Node.js ${{ matrix.node }} name: Build, lint, and test on Node.js ${{ matrix.node }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy: