Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub Pipeline #73

Merged
merged 7 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
name: CI

on:
push:
branches:
- main
- develop
pull_request:
merge_group:
push:

permissions:
id-token: write # This is required for requesting the JWT
security-events: write
contents: read
actions: read # This is required for actions/checkout
issues: write
pull-requests: write
checks: write # needed for spotbugs

jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
java: [11, 17, 21]
os: [ubuntu-latest,windows-latest]
java: [11, 17]
fail-fast: false

runs-on: ${{ matrix.os }}
Expand All @@ -23,7 +35,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
restore-keys: |
maven-${{ matrix.os }}-java${{ matrix.java }}-
maven-${{ matrix.os }}-
Expand All @@ -33,7 +45,7 @@ jobs:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode clean install
run: ./mvnw --batch-mode clean install
- uses: jwgmeligmeyling/spotbugs-github-action@master
with:
path: '**/spotbugsXml.xml'
Expand All @@ -47,11 +59,11 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
java-version: 11

- name: publish release package
if: contains( github.ref, 'main' ) || contains( github.base_ref, 'main' )
Expand Down
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
Loading