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

View file

@ -52,6 +52,17 @@ default:
build_test: build_test:
stage: 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: script:
- pnpm install --frozen-lockfile - pnpm install --frozen-lockfile
- pnpm run build:debug - pnpm run build:debug