Skip to content

Commit b2b70d5

Browse files
authored
Add PCT to workflow
1 parent afc7445 commit b2b70d5

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/maven.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
name: GitHub CI
1919

20-
on:
20+
on:
2121
push:
2222
branches:
2323
- master
@@ -56,3 +56,24 @@ jobs:
5656

5757
- name: Build with Maven
5858
run: mvn -e -B -V verify
59+
60+
pct:
61+
runs-on: ubuntu-latest
62+
container:
63+
image: jenkins/pct
64+
env:
65+
CHECKOUT_SRC: "https://github.com/${{ github.repository }}.git"
66+
VERSION: "${{ github.ref }}"
67+
volumes:
68+
- /home/runner/work/__w/out:/pct/out
69+
steps:
70+
# gets the Jenkins version from master's branch pom.xml to test against
71+
- name: Fetch Jenkins version
72+
run: |
73+
echo "JENKINS_VERSION=$(curl -s https://raw.githubusercontent.com/${{ github.repository }}/master/pom.xml | awk -F '[<>]' '/jenkins.version/{print $3}')" >> $GITHUB_ENV
74+
- run: run-pct
75+
- uses: actions/upload-artifact@v2
76+
with:
77+
name: pct-report
78+
path: /home/runner/work/__w/out/pct-report.html
79+
if-no-files-found: error

0 commit comments

Comments
 (0)