-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.13 KB
/
ci.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
name: Continuous Integration
on:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate Fake JUnit Report
run: |
cat <<EOF > report.xml
<testsuites>
<testsuite name="ExampleTestSuite" tests="1" failures="0" errors="0" skipped="0">
<testcase classname="example.TestClass" name="testExample" time="0.001"/>
</testsuite>
</testsuites>
EOF
- name: Print JUnit Report Content
shell: bash
run: |
cat report.xml
- shell: bash
run: |
set -x
# Check if FILES and MERGIFY_CI_ISSUES_TOKEN are set and not empty
if [ -z "$FILES" ]; then
echo "::error::Error: FILES is not set or is empty"
exit 1
fi
if [ -z "$MERGIFY_CI_ISSUES_TOKEN" ]; then
echo "::error::Error: MERGIFY_CI_ISSUES_TOKEN is not set or is empty"
exit 1
fi
- name: Mergify JUnit XML Upload
if: always()
uses: mergifyio/gha-ci-issues@v1