-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoverage.yml
More file actions
44 lines (42 loc) · 1.33 KB
/
coverage.yml
File metadata and controls
44 lines (42 loc) · 1.33 KB
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
name: Coverage
on: [push]
jobs:
coverage:
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: 3.31.0
- name: Checkout Logtalk application to be tested
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Run the application tests
run: |
logtalk_tester -f tap -c xml
xsltproc --stringparam url https://github.com/logtalk-actions/demo/blob/master -o coverage_report.html coverage_report.xml
- name: Upload TAP report
uses: actions/upload-artifact@master
with:
name: tap-report
path: tap_report.txt
- name: Upload code coverage report
uses: actions/upload-artifact@master
with:
name: code-coverage-report
path: coverage_report.html
- name: Copy code coverage report
run: |
mkdir public
cp coverage_report.html public/
- name: Publish code coverage report
uses: maxheld83/ghpages@v0.2.1
env:
BUILD_DIR: public
GH_PAT: ${{ secrets.GH_PAT }}