Обновить .gitea/workflows/gitea-ci.yml
All checks were successful
Java laboratory work CI / build (push) Successful in 26s
Java laboratory work CI / checkstyle (push) Successful in 3s

This commit is contained in:
2025-10-24 17:58:06 +07:00
parent d4ef7ef267
commit 240d6e3867

View File

@@ -4,7 +4,7 @@ on:
push:
jobs:
test:
build:
runs-on: ubuntu-latest
container:
cringehosting/cijdk:gradle_jdk21
@@ -14,4 +14,26 @@ jobs:
uses: actions/checkout@v4
- name: Build and test project
run:
gradle build --no-daemon # - Includes test task
gradle build --no-daemon # - Includes test task
checkstyle:
runs-on: ubuntu-latest
container:
cringehosting/cijdk:gradle_jdk21
steps:
- name: Checkout repository code
uses: actions/checkout@v4
- name: Check Google style accordance
run:
echo "Checking Google Java style accordance"
echo "Two messages emerge in case of success..." \
"...and more other way..." \
"...and then pipeline fails"
echo "Getting checkstyle jar"
wget https://github.com/checkstyle/checkstyle/releases/download/checkstyle-12.1.0/checkstyle-12.1.0-all.jar
echo "Getting google checkstyle"
wget https://raw.githubusercontent.com/checkstyle/checkstyle/master/src/main/resources/google_checks.xml
export command="java -jar checkstyle-12.1.0-all.jar -c ./google_checks.xml ./app/src/"
$command
test $($command | wc -l) -le 2