Skip to content

Commit

Permalink
Merge pull request #33 from commoncrawl/github-workflow
Browse files Browse the repository at this point in the history
Add Github workflow / build and test automation
  • Loading branch information
sebastian-nagel authored Oct 22, 2024
2 parents 8023ead + faf6241 commit fcbed8b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cc-index-table build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17, 21 ]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build
run: mvn verify javadoc:aggregate
10 changes: 7 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.13.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.2.5</version>
<configuration>
<includes>
<include>**/Test*.java</include>
Expand All @@ -55,11 +55,15 @@
<properties>
<excludeTags>performance</excludeTags>
</properties>
<argLine>
<!-- required for Java 17 -->
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<version>3.7.1</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
Expand Down

0 comments on commit fcbed8b

Please sign in to comment.