-
-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy path.struct.yaml
More file actions
70 lines (59 loc) · 2.22 KB
/
.struct.yaml
File metadata and controls
70 lines (59 loc) · 2.22 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
structure:
- .github/workflows/test.yaml:
content: |
name: test-perl
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@{{@ "actions/checkout" | latest_release @}}
- name: Set up Perl
uses: shogo82148/actions-setup-perl@{{@ "shogo82148/actions-setup-perl" | latest_release @}}
with:
perl-version: '5.36'
- name: Setup Python
uses: actions/setup-python@{{@ "actions/setup-python" | latest_release @}}
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y librrds-perl \
libjson-perl \
libhtml-parser-perl \
libcgi-pm-perl \
libipc-run-perl
- name: Run tests
run: |
export PERL5LIB=$PERL5LIB:/usr/share/perl5
prove -lrv t > tap.out
cat tap.out
- name: Convert TAP to Markdown inline
run: |
python3 ./scripts/tap2md.py tap.out > results.md
- name: Show Markdown Test Results as step summary
run: cat results.md >> $GITHUB_STEP_SUMMARY
- name: Upload Markdown Test Results
uses: actions/upload-artifact@{{@ "actions/upload-artifact" | latest_release @}}
with:
name: test-results-markdown
path: results.md
- name: Upload TAP Test Results
uses: actions/upload-artifact@{{@ "actions/upload-artifact" | latest_release @}}
with:
name: test-results-tap
path: tap.out
folders:
- ./:
struct:
- github/workflows/pre-commit
- github/workflows/release-drafter
- github/workflows/run-struct
- github/workflows/stale
with:
github_token: ${{ secrets.STRUCT_RUN_TOKEN }}