Skip to content

Commit e392050

Browse files
committed
Build
1 parent 81be968 commit e392050

File tree

4 files changed

+84
-4
lines changed

4 files changed

+84
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#name: publish
2+
#on:
3+
# release:
4+
# types: [published]
5+
#jobs:
6+
# publish-to-sonatype:
7+
# name: Publish Maven distribution 📦 to Sonatype
8+
# runs-on: ubuntu-latest
9+
# permissions:
10+
# id-token: write
11+
# steps:
12+
# - uses: actions/checkout@v4
13+
# - name: Set up JDK
14+
# uses: actions/setup-java@v4
15+
# with:
16+
# distribution: temurin
17+
# java-version: '17'
18+
# - name: Publish
19+
# env:
20+
# ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
21+
# ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
22+
# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USER }}
23+
# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
24+
# run: make publish

.github/workflows/tag.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: tag
2+
on:
3+
workflow_run:
4+
workflows:
5+
- test
6+
branches:
7+
- main
8+
- dev
9+
types:
10+
- completed
11+
jobs:
12+
tag:
13+
name: Tag the repository
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
permissions:
17+
contents: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: '0'
22+
- name: Bump version and push tag
23+
uses: anothrNick/github-tag-action@v1
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
WITH_V: true
27+
PRERELEASE_SUFFIX: dev
28+
PRERELEASE: ${{ github.ref_name != 'main' }}

.github/workflows/test.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- dev
7+
pull_request:
8+
jobs:
9+
test:
10+
name: Run tests
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
java-version: [ "17" ]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up JDK ${{ matrix.java-version }}
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: temurin
21+
java-version: ${{ matrix.java-version }}
22+
- name: Unit testing
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
26+
run: make unit-test-publish-report
27+
- name: Static Analysis
28+
run: make static-analysis
29+
# - name: Security Analysis
30+
# env:
31+
# NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
32+
# run: make security-analysis

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ unit-test:
2323
unit-test-publish-report:
2424
@./gradlew clean unitTest coveralls
2525

26-
.PHONY: integration-test # Runs integration tests
27-
integration-test:
28-
@./gradlew clean integrationTest
29-
3026
.PHONY: build # Builds artifacts
3127
build:
3228
@./gradlew clean build

0 commit comments

Comments
 (0)