Skip to content

Commit ab1eadf

Browse files
committed
ci: Improve docs build phase and test dependencies
1 parent 17598e8 commit ab1eadf

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
docs:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v1
17+
- uses: actions/checkout@v2
1818
- name: Set up Python
1919
uses: actions/setup-python@v1
2020
with:
@@ -24,6 +24,8 @@ jobs:
2424
run: |
2525
echo ::set-env name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
2626
echo ::set-env name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
27+
- uses: borales/[email protected]
28+
run: make dev-docs
2729
- name: Build docs website
2830
run: make build-docs-website
2931
- name: Deploy all docs

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11

22
dev-docs:
3-
cd docs && npm install
3+
cd docs && yarn install
44

55
build-docs:
66
@$(MAKE) build-docs-website
77

88
build-docs-website: dev-docs
99
mkdir -p dist
10-
cd docs && npm run build
10+
cd docs && yarn build
1111
cp -R docs/public/* dist/
1212

1313
docs-local:
14-
cd docs && npm run start
14+
cd docs && yarn start
1515

1616
test:
1717
mvn test

pom.xml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,15 @@
5151

5252
<dependencies>
5353
<dependency>
54-
<groupId>junit</groupId>
55-
<artifactId>junit</artifactId>
56-
<version>4.10</version>
54+
<groupId>org.junit.jupiter</groupId>
55+
<artifactId>junit-jupiter-api</artifactId>
56+
<version>5.6.2</version>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>org.junit.jupiter</groupId>
61+
<artifactId>junit-jupiter-engine</artifactId>
62+
<version>5.6.2</version>
5763
<scope>test</scope>
5864
</dependency>
5965
</dependencies>
@@ -63,6 +69,11 @@
6369
<id>dev</id>
6470
<build>
6571
<plugins>
72+
<plugin>
73+
<groupId>org.apache.maven.plugins</groupId>
74+
<artifactId>maven-surefire-plugin</artifactId>
75+
<version>2.22.2</version>
76+
</plugin>
6677
<plugin>
6778
<groupId>org.jacoco</groupId>
6879
<artifactId>jacoco-maven-plugin</artifactId>
@@ -113,6 +124,11 @@
113124
</distributionManagement>
114125
<build>
115126
<plugins>
127+
<plugin>
128+
<groupId>org.apache.maven.plugins</groupId>
129+
<artifactId>maven-surefire-plugin</artifactId>
130+
<version>2.22.1</version>
131+
</plugin>
116132
<plugin>
117133
<groupId>org.jacoco</groupId>
118134
<artifactId>jacoco-maven-plugin</artifactId>
@@ -194,6 +210,11 @@
194210
<id>release-maven</id>
195211
<build>
196212
<plugins>
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-surefire-plugin</artifactId>
216+
<version>2.22.1</version>
217+
</plugin>
197218
<plugin>
198219
<groupId>org.jacoco</groupId>
199220
<artifactId>jacoco-maven-plugin</artifactId>

0 commit comments

Comments
 (0)