Skip to content

Commit 8e6416d

Browse files
committed
fix: use only ubuntu build for jacoco report
1 parent ab065f3 commit 8e6416d

File tree

1 file changed

+38
-34
lines changed

1 file changed

+38
-34
lines changed

.github/workflows/maven.yml

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ concurrency:
1818

1919
jobs:
2020

21+
# build
22+
#############################################################################
23+
2124
build:
2225
strategy:
2326
fail-fast: true
@@ -44,41 +47,9 @@ jobs:
4447
name: build_${{ matrix.runner }}
4548
retention-days: 1
4649
path: coatjava.tar.gz
47-
- name: publish jacoco report
48-
run: validation/jacoco-aggregate.sh
49-
- uses: actions/upload-artifact@v3
50-
with:
51-
name: jacoco
52-
retention-days: 1
53-
path: publish/
54-
55-
collect_pages:
56-
runs-on: ubuntu-latest
57-
needs:
58-
- build
59-
steps:
60-
- uses: actions/download-artifact@v3
61-
with:
62-
name: jacoco
63-
path: publish/
64-
- uses: actions/upload-pages-artifact@v2
65-
with:
66-
path: publish/
67-
retention-days: 7
6850

69-
deploy_pages:
70-
needs: collect_pages
71-
permissions:
72-
pages: write
73-
id-token: write
74-
environment:
75-
name: github-pages
76-
url: ${{ steps.deployment.outputs.page_url }}
77-
runs-on: ubuntu-latest
78-
steps:
79-
- name: deployment
80-
id: deployment
81-
uses: actions/deploy-pages@v2
51+
# tests
52+
#############################################################################
8253

8354
test_coatjava:
8455
needs: [ build ]
@@ -154,3 +125,36 @@ jobs:
154125
steps:
155126
- name: pass
156127
run: exit 0
128+
129+
# deploy web pages
130+
#############################################################################
131+
132+
collect_pages:
133+
runs-on: ubuntu-latest
134+
needs:
135+
- build
136+
steps:
137+
- uses: actions/checkout@v3
138+
- uses: actions/download-artifact@v3
139+
with:
140+
name: build_${{ needs.build.outputs.default_runner }}
141+
- name: publish jacoco report
142+
run: validation/jacoco-aggregate.sh
143+
- uses: actions/upload-pages-artifact@v2
144+
with:
145+
path: publish/
146+
retention-days: 7
147+
148+
deploy_pages:
149+
needs: collect_pages
150+
permissions:
151+
pages: write
152+
id-token: write
153+
environment:
154+
name: github-pages
155+
url: ${{ steps.deployment.outputs.page_url }}
156+
runs-on: ubuntu-latest
157+
steps:
158+
- name: deployment
159+
id: deployment
160+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)