-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
86 additions
and
215 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
image: node:22 | ||
|
||
cache: | ||
key: | ||
files: | ||
- pnpm-lock.yaml | ||
paths: | ||
- .pnpm-store | ||
- node_modules/ | ||
- packages/*/node_modules/ | ||
|
||
before_script: | ||
- corepack enable | ||
- corepack prepare pnpm@latest-9 --activate | ||
- pnpm config set store-dir .pnpm-store | ||
- pnpm install | ||
|
||
stages: | ||
- test | ||
- codegen | ||
- release | ||
|
||
lint: | ||
stage: test | ||
script: | ||
- pnpm lint | ||
|
||
test: | ||
stage: test | ||
script: | ||
- pnpm test:coverage | ||
- curl -Os https://cli.codecov.io/latest/linux/codecov | ||
- chmod +x codecov | ||
- ./codecov upload-process -t $CODECOV_TOKEN | ||
|
||
build: | ||
stage: build | ||
script: | ||
- pnpm build | ||
artifacts: | ||
paths: | ||
- apps/*/dist | ||
- packages/*/dist | ||
|
||
# Continuous Delivery | ||
semantic-release: | ||
stage: release | ||
script: | ||
- pnpm build | ||
- pnpm exec multi-semantic-release | ||
variables: | ||
GIT_AUTHOR_NAME: 'gitlab-ci' | ||
GIT_AUTHOR_EMAIL: '[email protected]' | ||
GIT_COMMITTER_NAME: 'gitlab-ci' | ||
GIT_COMMITTER_EMAIL: '[email protected]' | ||
rules: | ||
- if: $CI_COMMIT_BRANCH == "main" | ||
when: always | ||
|
||
# Dependabot auto-merge functionality | ||
# Note: GitLab has its own Dependency Scanning and Auto-merge features | ||
# This can be configured in Settings > CI/CD > Merge request pipelines | ||
# and Settings > General > Merge requests > Merge checks | ||
regenerate-api: | ||
stage: codegen | ||
rules: | ||
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /Bump the oas group/ | ||
script: | ||
- pnpm api:regen | ||
- pnpm format | ||
- | | ||
if [[ -n $(git status --porcelain) ]]; then | ||
git config user.name "gitlab-ci" | ||
git config user.email "[email protected]" | ||
git add packages/rest/src/__generated__ | ||
git commit -nm "feat(rest): Update OpenAPI Spec generated code" | ||
git push origin HEAD:$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME | ||
fi | ||
workflow: | ||
rules: | ||
- if: $CI_COMMIT_BRANCH | ||
- if: $CI_MERGE_REQUEST_IID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { defineWorkspace } from 'vitest/config'; | ||
|
||
export default defineWorkspace(['apps/*', 'packages/*']); | ||
export default defineWorkspace(['apps/*/', 'packages/*/']); |