Skip to content

Simplify the type of MockActivityEnvironment.run #72

Simplify the type of MockActivityEnvironment.run

Simplify the type of MockActivityEnvironment.run #72

name: Check for CODEOWNERS
on:
# Runs on a pull request for the main branch (we use
# 'pull_request_target' instead of 'pull_request' so
# it also works for forks, since the secrets would
# otherwise not be available for forks).
pull_request_target:
types:
# Default events
- opened
- synchronize
- reopened
# But we also want to make sure a potential
# exception request pull request is getting
# closed if any was open
- closed
branches:
- main
- master
# Runs on a merge group build
merge_group:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: false
jobs:
check:
name: Check for CODEOWNERS
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# Find doesn't return non-0 for no results, but grep does.
- name: Check for CODEOWNERS
run: |
find . -iname "CODEOWNERS" | grep .