Add linting and contract builds to CI #222

Merged
raucao merged 5 commits from feature/183-ci_linting into master 2022-08-10 16:31:31 +00:00
Showing only changes of commit fd93993a1b - Show all commits

View File

@ -9,6 +9,18 @@ steps:
- cp -r /app/node_modules /drone/src/node_modules
- chown -R drone:drone /drone/src
- su drone -c 'npm install'
- name: lint js
image: gitea.kosmos.org/kredits/docker-ci:latest
commands:
- su drone -c 'npm run lint:wrapper'
depends_on:
- setup
- name: lint contracts
image: gitea.kosmos.org/kredits/docker-ci:latest
commands:
- su drone -c 'npm run lint:contracts'
depends_on:
- setup
- name: test
image: gitea.kosmos.org/kredits/docker-ci:latest
commands:
@ -17,15 +29,3 @@ steps:
- su drone -c 'npm test'
depends_on:
- setup
- name: lint-js
image: gitea.kosmos.org/kredits/docker-ci:latest
commands:
- su drone -c 'npm run lint:wrapper'
depends_on:
- setup
- name: lint-contracts
image: gitea.kosmos.org/kredits/docker-ci:latest
commands:
- su drone -c 'npm run lint:contracts'
depends_on:
- setup