ci: add ubuntu-latest to workflow jobs configuration
All checks were successful
CI / Get Changed Files (pull_request) Successful in 5s
CI / prettier (pull_request) Successful in 1m51s
CI / eslint (pull_request) Successful in 1m59s
CI / test-build (pull_request) Successful in 2m7s
CI / Checkstyle Main (pull_request) Successful in 2m47s

This commit is contained in:
Jan K9f 2025-04-23 08:52:55 +02:00
parent 87c822dbd7
commit 24d2a93c7f
Signed by: jank
GPG key ID: 22BEAC760B3333D6

View file

@ -26,6 +26,7 @@ jobs:
- '.gitea/workflows/**'
checkstyle:
runs-on: ubuntu-latest
name: "Checkstyle Main"
needs: changed_files
if: ${{ needs.changed_files.outputs.backend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
@ -54,26 +55,27 @@ jobs:
echo "Cache miss! Running checkstyle check"
echo "cache-hit=false" >> $GITHUB_OUTPUT
fi
- name: "Run checkstyle"
if: steps.check-cache.outputs.cache-hit != 'true'
working-directory: ./backend
run: |
gradle checkstyleMain
- name: "Cache checkstyle results"
if: steps.check-cache.outputs.cache-hit != 'true'
uses: actions/upload-artifact@v4
with:
name: checkstyle-results
path: backend/build/reports/checkstyle
- name: "Stop Gradle"
if: steps.check-cache.outputs.cache-hit != 'true'
working-directory: ./backend
run: gradle --stop
eslint:
runs-on: ubuntu-latest
name: eslint
needs: changed_files
if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
@ -102,6 +104,7 @@ jobs:
bun run lint
prettier:
runs-on: ubuntu-latest
name: prettier
needs: changed_files
if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
@ -130,6 +133,7 @@ jobs:
bun run format:check
test-build:
runs-on: ubuntu-latest
name: test-build
needs: changed_files
if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }}