Skip to content

Commit

Permalink
Change approach again, use types to limit which pull requests trigg…
Browse files Browse the repository at this point in the history
…er the event
  • Loading branch information
jodeleeuw authored Jan 17, 2025
1 parent 14b2586 commit 236657d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: build

on: [push, pull_request]
on:
push:
pull_request:
types: [opened, reopened, ready_for_review, review_requested]

jobs:
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 }}
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 236657d

Please sign in to comment.