Skip to content

Commit 774c745

Browse files
Set up API surface check for pull requests
1 parent f8dc655 commit 774c745

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# https://github.com/marketplace/actions/api-surface-check-for-php
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- ".editorconfig"
7+
- "LICENSE"
8+
- "**.md"
9+
- "**.png"
10+
- "**.svg"
11+
- "tests/**"
12+
13+
name: "API Surface Check"
14+
15+
permissions: {}
16+
17+
concurrency:
18+
group: api-surface-${{ github.event.pull_request.number }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
signal:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- run: "true"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# https://github.com/marketplace/actions/api-surface-check-for-php
2+
3+
on:
4+
workflow_run:
5+
workflows: ["API Surface Check"]
6+
types: [completed]
7+
8+
name: "API Surface Comment"
9+
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
concurrency:
15+
group: api-surface-comment-${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
check-api-surface:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: composer/api-surface-check@main

0 commit comments

Comments
 (0)