ci: skip builds if unneeded

This commit is contained in:
naskya 2024-05-07 17:36:23 +09:00
parent 1b8748bc8c
commit 09ef642905
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,17 @@ default:
build_test:
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == 'push' || $CI_PIPELINE_SOURCE == 'merge_request_event'
changes:
paths:
- packages/**/*
- scripts/**/*
- locales/**/*
- package.json
- pnpm-lock.yaml
- Cargo.toml
- Cargo.lock
script:
- pnpm install --frozen-lockfile
- pnpm run build:debug