add frontend CI

This commit is contained in:
sam 2023-12-30 02:33:58 +01:00
parent d559d1a036
commit 44b667ff43
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
3 changed files with 18 additions and 2 deletions

16
.woodpecker.yml Normal file
View File

@ -0,0 +1,16 @@
steps:
frontend:
image: node
directory: frontend
environment: # SvelteKit expects these in the environment during build time.
- PRIVATE_SENTRY_DSN=non_existent_dsn
- PUBLIC_BASE_URL=http://pronouns.localhost
- PUBLIC_MEDIA_URL=http://pronouns.localhost/media
- PUBLIC_SHORT_BASE=http://prns.localhost
- PUBLIC_HCAPTCHA_SITEKEY=non_existent_sitekey
commands:
- corepack enable
- pnpm install
- pnpm check
- pnpm lint
- pnpm build

View File

@ -2,7 +2,7 @@ all: generate backend frontend
.PHONY: backend .PHONY: backend
backend: backend:
go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/pronounscc/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD` -X codeberg.org/pronounscc/pronouns.cc/backend/server.Tag=`git describe --tags --long`" . go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/pronounscc/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD` -X codeberg.org/pronounscc/pronouns.cc/backend/server.Tag=`git describe --tags --long --always`" .
.PHONY: generate .PHONY: generate
generate: generate:

View File

@ -11,7 +11,7 @@ const config = {
kit: { kit: {
adapter: adapter(), adapter: adapter(),
version: { version: {
name: child_process.execSync("git describe --tags --long").toString().trim(), name: child_process.execSync("git describe --tags --long --always").toString().trim(),
}, },
}, },
}; };