Skip to content

Commit

Permalink
Add Github Action for testing (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
robson90 authored Oct 2, 2024
1 parent 72b80e0 commit e89d3c2
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
# 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://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
day: "tuesday"
time: "05:00"
assignees:
- "robson90"
labels:
- dependencies
commit-message:
include: "scope"
prefix: "chore"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "tuesday"
time: "05:00"
assignees:
- "robson90"
open-pull-requests-limit: 10
20 changes: 20 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Maven CI/CD

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
cache: maven
- name: Build project with Maven
run: mvn -B clean package

0 comments on commit e89d3c2

Please sign in to comment.