forked from GuillaumeFalourd/pull-request-action
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.15 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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