-
Notifications
You must be signed in to change notification settings - Fork 267
41 lines (36 loc) · 1.26 KB
/
rit.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
name: Rootstock Integration Tests
on:
pull_request:
branches:
- "master"
- "*-rc"
issue_comment:
types:
- created
- edited
jobs:
rootstock-integration-tests:
name: Rootstock Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Get PR Description
id: get-pr
run: |
PR_DESC=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}" \
| jq -r '.body')
echo "PR_DESC=$PR_DESC" >> $GITHUB_ENV
- name: Parse Branches
id: parse-branches
run: |
echo "rskj-branch=$(echo "$PR_DESC" | grep -oP 'rskj:\K\w+')" >> $GITHUB_ENV
echo "powpeg-node-branch=$(echo "$PR_DESC" | grep -oP 'powpeg-node:\K\w+')" >> $GITHUB_ENV
- name: Test execution
if: ${{ github.event_name == 'issue_comment' && contains(github.event.comment.body, '/pipeline:run') }}
uses: rsksmart/rootstock-integration-tests@v1
with:
rskj-branch: ${{ env.rskj-branch }}
powpeg-node-branch: ${{ env.powpeg-node-branch }}