feat: integrate client and server sharing workflows
This commit is contained in:
1 parent
42b93ae2d8
commit
7406e2fe37
101 files changed
+3153
-253
No files matched your search
@@ -0,0 +1,38 @@
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
|
||||
steps:
|
||||
api-contract:
|
||||
image: node:24.21.0-alpine3.23
|
||||
commands:
|
||||
- node scripts/check-api-contract.mjs
|
||||
|
||||
core-and-web:
|
||||
image: node:24.21.0-alpine3.23
|
||||
directory: packages/core
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run typecheck
|
||||
- npm test
|
||||
- npm run vectors:check
|
||||
- npm run build
|
||||
|
||||
web:
|
||||
image: node:24.21.0-alpine3.23
|
||||
directory: web
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run typecheck
|
||||
- npm run lint:css
|
||||
- npm test
|
||||
- npm run build
|
||||
|
||||
server:
|
||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||
commands:
|
||||
- dotnet test server/WebDrop.slnx --configuration Release --verbosity minimal
|
||||
|
||||
compose-config:
|
||||
image: docker:29.8.1-cli-alpine3.24
|
||||
commands:
|
||||
- docker compose --env-file .env.example config --quiet
|
||||
@@ -0,0 +1,29 @@
|
||||
when:
|
||||
- event: tag
|
||||
ref: refs/tags/v*
|
||||
|
||||
steps:
|
||||
release-checks:
|
||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||
commands:
|
||||
- dotnet test server/WebDrop.slnx --configuration Release --verbosity minimal
|
||||
|
||||
validate-release:
|
||||
image: node:24.21.0-alpine3.23
|
||||
commands:
|
||||
- node scripts/check-api-contract.mjs "$CI_COMMIT_TAG"
|
||||
|
||||
publish-backend:
|
||||
image: woodpeckerci/plugin-docker-buildx:2
|
||||
privileged: true
|
||||
settings:
|
||||
context: .
|
||||
dockerfile: server/Dockerfile
|
||||
platforms: linux/amd64
|
||||
repo: zot.oeo.one/justme/webdrop-api
|
||||
registry: zot.oeo.one
|
||||
tags: ${CI_COMMIT_TAG}
|
||||
username:
|
||||
from_secret: registry_username
|
||||
password:
|
||||
from_secret: registry_password
|
||||
Reference in new issue
Block a user