Skip to content

Commit 0268061

Browse files
authored
Add GitHub Actions workflow (#88)
* Add GitHub Actions workflow * Added master to push and pull_request triggers * Add GitHub Actions workflow * Removed redundant caching steps * Fix Maven CI with --add-opens for tests * Fix Maven build on Java 8 * Fix Maven CI with --add-opens for tests * GitHub Actions workflow to use only Java 8 --------- Co-authored-by: jwnasambu <wamalwa1844.com>
1 parent d228a61 commit 0268061

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build with Maven
2+
3+
on:
4+
push:
5+
branches:
6+
- '2.x.x'
7+
- 'master'
8+
pull_request:
9+
branches:
10+
- '2.x.x'
11+
- 'master'
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up JDK 8
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: 8
25+
distribution: temurin
26+
cache: maven
27+
28+
- name: Install dependencies
29+
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml
30+
31+
- name: Build and Test with Maven
32+
run: mvn test --batch-mode --show-version --file pom.xml

0 commit comments

Comments
 (0)