Skip to content

Commit dad1185

Browse files
committed
Test with github actions
1 parent e93b287 commit dad1185

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and test
2+
3+
on: [ pull_request, push ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
java: [ 8, 11, 17 ]
12+
13+
name: Java ${{ matrix.java }} build
14+
15+
steps:
16+
17+
- name: Setup Maven Action
18+
uses: s4u/setup-maven-action@v1.3.1
19+
with:
20+
java-version: ${{ matrix.java }}
21+
22+
- name: Run docker image for integration tests
23+
run: docker run -d --name wp_build_test -p 80:80 afrozaar/wordpress:latest
24+
25+
- run: mvn verify

0 commit comments

Comments
 (0)