Github actions not running on Pull Requests

When someone else posts a pull request on two projects of mine, the GitHub actions for tests never run.

The status icon stays yellow and the message reads:

Expected — Waiting for status to be reported

When I look in the actions tab of both the forked repo and my own, nothing has even run.

They do run perfectly for me.

Is this a bug with GitHub or am I doing something wrong?

My test yaml is:

name: Node.js Test Runner

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [12.x, 14.x]

    steps:
    - uses: actions/checkout@v2

    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}

    - run: npm install
    - run: npm run build --if-present
    - run: npm test
      env:
        CI: true

I’m thinking, possibly, on: [push] is wrong? Is there another item that should be in there?

Yeah that was the issue. I changed it to:

on:
  pull_request:
  push:
    branches:
      - master

And it now works perfectly.