Files
EpicNext-Cms/.gitea/workflows/container.yaml
T
openhands 54b7c67878
CI / check (push) Successful in 1m0s
CI / deploy (push) Successful in 1m8s
perf: speed up local test runs by moving coverage to optional script
Run vitest without coverage by default (pnpm test) and add pnpm test:coverage which enforces the coverage thresholds. CI keeps using the coverage run so thresholds are still enforced on every push.
2026-09-08 18:12:34 +02:00

35 lines
1.0 KiB
YAML

name: Publish portable container
on:
workflow_dispatch:
jobs:
publish:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ gitea.repository }}
token: ${{ gitea.token }}
- name: Install and verify
run: |
node scripts/check-node-toolchain.mjs
pnpm install --frozen-lockfile
pnpm typecheck
pnpm biome:lint
pnpm test:coverage
env:
SKIP_ENV_VALIDATION: 1
NODE_ENV: test
DATABASE_URL: mysql://test:[email protected]:9/test
AUTH_SECRET: container-test-secret-at-least-32-characters
- name: Build, verify portability and publish
shell: bash
env:
REGISTRY_SERVER: ${{ gitea.server_url }}
REGISTRY_REPOSITORY: ${{ gitea.repository }}
REGISTRY_USER: ${{ secrets.CONTAINER_REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
run: bash scripts/publish-container.sh