Skip to content

Commit

Permalink
Use new parent pom (#1)
Browse files Browse the repository at this point in the history
* update to new parent pom and structure

* update readme

* add code owners
  • Loading branch information
pcalouche authored Feb 1, 2024
1 parent 579f4b1 commit 278350d
Show file tree
Hide file tree
Showing 17 changed files with 247 additions and 980 deletions.
14 changes: 14 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

echo "Running pre-commit hook: formatting files"

FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
[ -z "$FILES" ] && exit 0

# Apply formatting to all files
make format

# Add back the formatted files to staging
echo "$FILES" | xargs git add

exit 0
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @pcalouche
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
registries:
github:
type: "maven-repository"
url: "https://maven.pkg.github.com/pcalouche/*"
username: ${{ secrets.MAVEN_SERVER_USERNAME }}
password: ${{ secrets.MAVEN_SERVER_PASSWORD }}
updates:
- package-ecosystem: "maven"
directory: "/" # Location of package manifests
registries: "*"
schedule:
interval: "daily"
target-branch: "main"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
target-branch: "main"
30 changes: 30 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Continuous Integration

on:
push:
env:
MAVEN_SERVER_USERNAME: ${{ secrets.MAVEN_SERVER_USERNAME }}
MAVEN_SERVER_PASSWORD: ${{ secrets.MAVEN_SERVER_PASSWORD }}

permissions:
contents: read

jobs:
maven-verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
server-id: github
server-username: MAVEN_SERVER_USERNAME
server-password: MAVEN_SERVER_PASSWORD
- name: Verify build
run: mvn -B verify
Loading

0 comments on commit 278350d

Please sign in to comment.