Skip to content

Commit e37cf09

Browse files
committed
Added CI automation
1 parent 25731df commit e37cf09

File tree

4 files changed

+107
-0
lines changed

4 files changed

+107
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/depsreview.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Dependency Review'
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependency-review:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Checkout Repository'
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
- name: 'Dependency Review'
14+
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0

.github/workflows/main-build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Build Main
10+
11+
on:
12+
push:
13+
branches: [ "main" ]
14+
15+
env:
16+
PROJECTS: ${{ github.workspace }}
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up JDK 21
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: '21'
27+
distribution: 'temurin'
28+
cache: maven
29+
- name: Build with Maven
30+
run: mvn -B package --file pom.xml

.github/workflows/pr-builds.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Multiplatform PR Builds
10+
11+
on:
12+
pull_request:
13+
branches:
14+
- "main"
15+
paths-ignore:
16+
- .github/**
17+
- docs/**
18+
- artwork/**
19+
- README.md
20+
- docker-*
21+
- index.md
22+
- jbang-catalog.json
23+
- Makefile
24+
- LICENSE
25+
26+
env:
27+
PROJECTS: ${{ github.workspace }}
28+
29+
jobs:
30+
build:
31+
32+
runs-on: ${{ matrix.os }}
33+
continue-on-error: ${{ matrix.experimental }}
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest, macos-latest]
37+
experimental: [false]
38+
include:
39+
- os: [ windows-latest ]
40+
experimental: true
41+
fail-fast: true
42+
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Set up JDK 21
46+
uses: actions/setup-java@v4
47+
with:
48+
java-version: '21'
49+
distribution: 'temurin'
50+
cache: maven
51+
- name: Build with Maven
52+
run: mvn -B package --file pom.xml

0 commit comments

Comments
 (0)