mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-26 13:46:39 +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:
|
include:
|
||||||
- pull_request
|
- 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
|
- name: snapshot
|
||||||
image: superseriousbusiness/gotosocial-drone-build:0.0.7 # https://github.com/superseriousbusiness/gotosocial-drone-build
|
image: superseriousbusiness/gotosocial-drone-build:0.0.7 # https://github.com/superseriousbusiness/gotosocial-drone-build
|
||||||
volumes:
|
volumes:
|
||||||
|
|
1
web/source/.eslintignore
Normal file
1
web/source/.eslintignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
node_modules
|
Loading…
Reference in a new issue