ditto/.gitlab-ci.yml

41 lines
741 B
YAML

image: denoland/deno:1.44.2
default:
interruptible: true
stages:
- test
fmt:
stage: test
script: deno fmt --check
lint:
stage: test
script: deno lint
check:
stage: test
script: deno task check
test:
stage: test
script: deno task test
variables:
DITTO_NSEC: nsec1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygs4rm7hz
artifacts:
when: always
paths:
- deno-test.xml
reports:
junit: deno-test.xml
postgres:
stage: test
script: deno task db:migrate
services:
- postgres:16
variables:
DITTO_NSEC: nsec1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygs4rm7hz
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
POSTGRES_HOST_AUTH_METHOD: trust