This repository has been archived on 2021-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
svelte-sharg/.drone.yml
Tobias Berger 146aee4e44
Some checks failed
continuous-integration/drone/push Build is failing
Fix preview builds
2021-10-14 12:58:26 +02:00

68 lines
1.2 KiB
YAML

kind: pipeline
type: docker
# Check if the game builds
# If yes, test if everything is nice
# If yes, deploy to vercel
steps:
- name: install
image: node
commands:
- yarn
- name: build-game
image: node
commands:
- yarn build:game
depends_on:
- install
- name: build-pwa
image: node
commands:
- yarn build:pwa
depends_on:
- install
- name: prettier
image: node
commands:
- yarn lint:prettier:all
depends_on:
- build-game
- build-pwa
- name: eslint
image: node
commands:
- yarn lint:eslint --max-warnings=0
depends_on:
- build-game
- build-pwa
- name: check
image: node
commands:
- yarn check
depends_on:
- build-game
- build-pwa
- name: deploy (production)
image: dockette/vercel
commands:
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
when:
branch:
- main
depends_on:
- prettier
- eslint
- check
- name: deploy (preview)
image: dockette/vercel
commands:
- vercel -t $VERCEL_TOKEN --scope $VERCEL_SCOPE -c
when:
branch:
exclude:
- main
depends_on:
- prettier
- eslint
- check