-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.28 KB
/
test.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
name: Test
on:
# https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#issue_comment
# There does not exist an event specifically for PR comments which means
# we need to have that check further down the action definition.
issue_comment:
types: [created]
jobs:
test:
# This condition is important since you want to prevent all of the steps
# from running as early as possible if the comment isn't in a PR.
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
name: Approve BackstopJS
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
type: check
name: BackstopJS visual test
approve_comment: backstop-check approve
- uses: ./
name: Approve ESLint
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
type: check
name: ESLint
approve_comment: eslint-check approve
# There is no step in checks.yml named Cypress which will lead this to fail.
- uses: ./
name: Approve Cypress
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
type: check
name: Cypress
approve_comment: cypress-check approve