I have a workflow defined like this:
name: Api Lint on: push: branches: - master paths: - api/** pull_request: paths: - api/** jobs: api-lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Use Node.js 12.x uses: actions/setup-node@v1 with: node-version: 12.x - run: yarn install - name: api lint working-directory: ./api env: CI: true run: | yarn lint
You’ll notice this job only runs when the pull_request changes a file under the api directory. I’d like to make this a required check using the “Require status checks to pass before merging” setting, but when I make a change that does not touch the api directory the check does not run, so does not pass and I can’t merge my change with that enforcement in place.
Any ideas? Thanks!