forked from GuillaumeFalourd/pull-request-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: add title and body tests Signed-off-by: Steffen Tautenhahn <[email protected]> * fix: fail on error Signed-off-by: Steffen Tautenhahn <[email protected]> * fix: run all tests on errors Signed-off-by: Steffen Tautenhahn <[email protected]> * fix: if one of title or body is not set, add fill Signed-off-by: Steffen Tautenhahn <[email protected]> --------- Signed-off-by: Steffen Tautenhahn <[email protected]>
- Loading branch information
Showing
5 changed files
with
52 additions
and
132 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Action test | ||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./ | ||
name: test-min | ||
if: failure() || success() | ||
- uses: ./ | ||
name: test-title-only | ||
if: failure() || success() | ||
with: | ||
pr_title: "Pulling ${{ github.ref_name }} into main" | ||
- uses: ./ | ||
name: test-body-only | ||
if: failure() || success() | ||
with: | ||
pr_body: "Pulling ${{ github.ref_name }} into main" | ||
- uses: ./ | ||
name: test-max | ||
if: failure() || success() | ||
with: | ||
pr_title: "Pulling ${{ github.ref }} into main" | ||
pr_body: "An automated PR" | ||
pr_reviewer: "GuillaumeFalourd" | ||
pr_assignee: "GuillaumeFalourd" | ||
pr_label: "test" | ||
pr_milestone: "Milestone 1" | ||
pr_draft: true | ||
pr_allow_empty: true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters