-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (41 loc) · 1.51 KB
/
regression-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
43
44
45
46
47
48
49
50
51
52
name: Regression Test Pipeline
on:
workflow_dispatch:
permissions:
contents: write
jobs:
Regression-Test-Prime:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 20 LTS
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install httpyac
run: npm install -g httpyac && node --version && httpyac --version
- name: Install Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install https://github.com/inorton/junit2html
run: pip install junit2html
- name: Run regression tests and generate results files
run: npm run gen-regression-test-results
- name: Set up environment variables
run: |
echo "DATETIME=$(date +'%Y-%m-%d-%H-%M-%S')" >> $GITHUB_ENV
- name: Commit and push result
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "test: introduce ${{ env.DATETIME }} regression test results"
git push
- name: Trigger Deploy to GitHub Pages workflow
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/dispatches \
-d '{"event_type": "execute-post-regression-test"}'