generated from betrybe/challenge-bug-hunting-youtrybe-squad-x
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 1.11 KB
/
main.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
on:
pull_request:
types: [opened, synchronize]
jobs:
evaluator_job:
runs-on: ubuntu-18.04
name: Evaluator job
steps:
- name: Wait for build to succeed
uses: betrybe/action-wait-for-check@v2
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: codeclimate
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/checkout@v2
if: steps.wait-for-build.outputs.conclusion == 'success'
- name: Evaluator step
id: test
uses: betrybe/react-scripts-evaluator-action@v3
if: steps.wait-for-build.outputs.conclusion == 'success'
with:
repository-test-name: 'betrybe/sd-0x-challenge-bug-hunting-youtrybe-tests'
repository-test-branch: 'master'
- name: Store evaluation step
uses: betrybe/store-evaluation-action@v2
if: steps.wait-for-build.outputs.conclusion == 'success'
with:
evaluation-data: ${{ steps.test.outputs.result }}
environment: production
pr-number: ${{ steps.test.outputs.pr-number }}