Skip to content

Commit cad1c39

Browse files
feat: add deployment-dapp CI workflow and remove dapp-deployment-default from drone.yml
1 parent 24b08f5 commit cad1c39

File tree

2 files changed

+40
-30
lines changed

2 files changed

+40
-30
lines changed

.drone.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -288,36 +288,6 @@ steps:
288288
password:
289289
from_secret: nexus-password
290290

291-
---
292-
# dapp-deployment default pipeline
293-
# /!\ every step must run in dapp-deployment/
294-
kind: pipeline
295-
type: docker
296-
name: dapp-deployment-default
297-
298-
trigger:
299-
event: push
300-
301-
steps:
302-
- name: install deps
303-
image: node:18.19
304-
pull: always
305-
commands:
306-
- cd deployment-dapp
307-
- npm ci
308-
309-
- name: lint
310-
image: node:18.19
311-
commands:
312-
- cd deployment-dapp
313-
- npm run lint
314-
315-
- name: format
316-
image: node:18.19
317-
commands:
318-
- cd deployment-dapp
319-
- npm run check-format
320-
321291
---
322292
#pipeline to publish dapp contract on iexec
323293
kind: pipeline
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: web3telegram Deployment DApp - CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
paths:
8+
- 'deployment-dapp/**'
9+
- 'deployment-dapp/package.json'
10+
- 'deployment-dapp/package-lock.json'
11+
- 'deployment-dapp/.eslintrc.json'
12+
- 'deployment-dapp/.prettierrc'
13+
14+
concurrency:
15+
group: ${{ github.ref }}-deployment-dapp-ci
16+
cancel-in-progress: true
17+
18+
jobs:
19+
check-code:
20+
runs-on: ubuntu-latest
21+
defaults:
22+
run:
23+
working-directory: ./deployment-dapp
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 18
30+
cache: 'npm'
31+
cache-dependency-path: deployment-dapp/package-lock.json
32+
33+
- name: Install Dependencies
34+
run: npm ci
35+
36+
- name: Lint
37+
run: npm run lint
38+
39+
- name: Check formatting
40+
run: npm run check-format

0 commit comments

Comments
 (0)