25 lines
691 B
YAML
25 lines
691 B
YAML
# https://taskfile.dev
|
|
|
|
version: '3'
|
|
|
|
silent: true
|
|
|
|
tasks:
|
|
build:
|
|
desc: Build docker image
|
|
cmd: docker build -t ghcr.io/rmcampos/shell-whats:latest .
|
|
|
|
dev-run:
|
|
desc: Run the app locally for development
|
|
cmd: |
|
|
export $(doppler secrets download --no-file --format env --config dev_tokens | sed 's/"//g' | xargs) && \
|
|
doppler run --config dev_secrets -- npm run dev
|
|
|
|
test-api:
|
|
desc: Run API integration tests against the backend
|
|
cmd: ./scripts/test-api.sh
|
|
|
|
test-api-local:
|
|
desc: Run API tests against local server (http://localhost:3000)
|
|
cmd: doppler run --config dev_secrets -- bash -c 'BASE_URL=http://localhost:3000 ./scripts/test-api.sh'
|