mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-26 05:36:38 +00:00
eslint & web bundle in CI
This commit is contained in:
parent
60c5d691ef
commit
72d6506c84
34
.drone.yml
34
.drone.yml
|
@ -44,6 +44,40 @@ steps:
|
|||
include:
|
||||
- pull_request
|
||||
|
||||
- name: web-setup
|
||||
image: node:14-alpine
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
- pull_request
|
||||
volumes:
|
||||
- name: yarn_cache
|
||||
path: /tmp/cache
|
||||
commands:
|
||||
- yarn --frozen-lockfile --cache-folder /tmp/cache
|
||||
|
||||
- name: web-lint
|
||||
image: node:14-alpine
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
- pull_request
|
||||
depends_on:
|
||||
- web-setup
|
||||
commands:
|
||||
- eslint web/source
|
||||
|
||||
- name: web-build
|
||||
image: node:14-alpine
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
- pull_request
|
||||
depends_on:
|
||||
- web-setup
|
||||
commands:
|
||||
- node web/source
|
||||
|
||||
- name: snapshot
|
||||
image: superseriousbusiness/gotosocial-drone-build:0.0.7 # https://github.com/superseriousbusiness/gotosocial-drone-build
|
||||
volumes:
|
||||
|
|
1
web/source/.eslintignore
Normal file
1
web/source/.eslintignore
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules
|
Loading…
Reference in a new issue