diff --git a/.drone.yml b/.drone.yml index 7599dc48f..739047a66 100644 --- a/.drone.yml +++ b/.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: diff --git a/web/source/.eslintignore b/web/source/.eslintignore new file mode 100644 index 000000000..b512c09d4 --- /dev/null +++ b/web/source/.eslintignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file