ci: update CI workflows to include path filters
All checks were successful
CI / Checkstyle Main (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped

This commit is contained in:
Jan K9f 2025-03-12 21:03:40 +01:00
parent dc5275d043
commit 763afdc546
Signed by: jank
GPG key ID: 22BEAC760B3333D6
2 changed files with 13 additions and 0 deletions

View file

@ -2,10 +2,15 @@ name: CI
on:
pull_request:
paths:
- 'backend/**'
- 'frontend/**'
- '.gitea/workflows/ci.yml'
jobs:
checkstyle:
name: "Checkstyle Main"
if: ${{ contains(github.event.pull_request.changed_files_json, 'backend/') || contains(github.event.pull_request.changed_files_json, '.gitea/workflows/ci.yml') }}
container:
image: "cimg/openjdk:23.0-node"
steps:
@ -32,6 +37,7 @@ jobs:
eslint:
name: eslint
if: ${{ contains(github.event.pull_request.changed_files_json, 'frontend/') || contains(github.event.pull_request.changed_files_json, '.gitea/workflows/ci.yml') }}
container:
image: catthehacker/ubuntu:act-latest
steps:
@ -58,6 +64,7 @@ jobs:
prettier:
name: prettier
if: ${{ contains(github.event.pull_request.changed_files_json, 'frontend/') || contains(github.event.pull_request.changed_files_json, '.gitea/workflows/ci.yml') }}
container:
image: catthehacker/ubuntu:act-latest
steps:
@ -84,6 +91,7 @@ jobs:
test-build:
name: test-build
if: ${{ contains(github.event.pull_request.changed_files_json, 'frontend/') || contains(github.event.pull_request.changed_files_json, '.gitea/workflows/ci.yml') }}
container:
image: catthehacker/ubuntu:act-latest
steps:

View file

@ -3,6 +3,11 @@ on:
push:
branches:
- "main"
paths:
- 'backend/**'
- 'frontend/**'
- '.gitea/workflows/release.yml'
- 'release.config.cjs'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}