eslint & web bundle in CI

This commit is contained in:
f0x 2022-11-07 20:20:01 +00:00
parent 60c5d691ef
commit 72d6506c84
2 changed files with 35 additions and 0 deletions

View file

@ -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
View file

@ -0,0 +1 @@
node_modules