Skip to content

Commit 63676a5

Browse files
author
pgoetz
committed
Add Forgejo CI
1 parent da5fe40 commit 63676a5

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎.forgejo/workflows/pipeline.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on: [push]
2+
jobs:
3+
ci:
4+
runs-on: docker
5+
container:
6+
image: pgoetz/forgejo-runner-container:latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- run: |
10+
./gradlew test jacocoTestReport
11+
./gradlew build
12+
./gradlew pmdMain pmdTest
13+
- uses: actions/upload-artifact@v3
14+
with:
15+
name: battleship
16+
path: console-app/build/distributions

‎build.gradle‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
allprojects {
66
apply plugin: 'base'
77
apply plugin: 'jacoco'
8+
apply plugin: 'pmd'
89

910
repositories {
1011
mavenCentral()
@@ -13,6 +14,10 @@ allprojects {
1314
jacoco {
1415
toolVersion = '0.8.11'
1516
}
17+
18+
pmd {
19+
ignoreFailures = true
20+
}
1621
}
1722

1823
subprojects {

0 commit comments

Comments
 (0)