Skip to content

Commit

Permalink
Add GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ottlinger committed Dec 11, 2023
1 parent 636b93f commit e91cb12
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
43 changes: 43 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: GitHub Action CI build

on:
push:
# branches-ignore:
# - dependabot/**
pull_request:

jobs:
build:

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

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use artifact caching
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build with Maven
run: ./mvnw -e -B -V -ntp clean package

- name: Code coverage with codecov
uses: codecov/codecov-action@v3

0 comments on commit e91cb12

Please sign in to comment.