-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompliance_plus_allure_report.yml
46 lines (44 loc) · 1.86 KB
/
compliance_plus_allure_report.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
name: Standards compliance
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install SWI-Prolog backend
uses: logtalk-actions/setup-swi-prolog@master
with:
swi-prolog-branch: stable
swi-prolog-version: latest
- name: Install Logtalk
uses: logtalk-actions/setup-logtalk@master
with:
logtalk-version: git
logtalk-tool-dependencies: false
- name: Install Allure
run: |
wget https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.21.0/allure-commandline-2.21.0.zip
unzip allure-commandline-2.21.0.zip
cd allure-2.21.0/bin
sudo ln -s "$PWD/allure" /usr/local/bin/allure
allure --version
- name: Define environment variable for the test results
run: |
echo "EXIT=0" >> $GITHUB_ENV
echo "LOGTALK_GIT_HASH=`git ls-remote https://github.com/LogtalkDotOrg/logtalk3 HEAD | cut -f1`" >> $GITHUB_ENV
- name: Run the Prolog standards compliance test suite
run: |
cd "$LOGTALKUSER/tests/prolog"
logtalk_tester -p swi -g "set_logtalk_flag(clean,off)" -t 120 -f xunit_net_v2 -s "$HOME/logtalk/tests/prolog/" -u "https://github.com/LogtalkDotOrg/logtalk3/tree/$LOGTALK_GIT_HASH/tests/prolog/" -w || EXIT=$?
echo "EXIT=$EXIT" >> $GITHUB_ENV
- name: Create Allure report
run: |
cd "$LOGTALKUSER/tests/prolog"
logtalk_allure_report -t "Standards Compliance Report" -- Backend='SWI-Prolog' Commit=$GITHUB_SHA
mv allure-report $GITHUB_WORKSPACE/
- name: Upload Allure report
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./allure-report
- name: Set workflow exit status after the test results
run: exit $EXIT