File tree Expand file tree Collapse file tree 2 files changed +46
-48
lines changed
Expand file tree Collapse file tree 2 files changed +46
-48
lines changed Original file line number Diff line number Diff line change 1- kind : pipeline
2- type : docker
3- name : root checks
4-
5- trigger :
6- event :
7- - pull_request
8-
9- steps :
10- - name : cat-drone-consider
11- image : node:18.19
12- commands :
13- - cat .drone-consider
14-
15- - name : check-sdk-abi
16- image : node:18.19
17- commands :
18- - cd packages/sdk
19- - npm run refresh-abis
20- - |
21- if [ -n "$(git diff --name-only)" ]; then
22- echo "ABIs not up-to-date in packages/sdk, need to run 'npm run refresh-abis'"
23- exit 1
24- fi
25-
26- - name : check-subgraph-abi
27- image : node:18.19
28- commands :
29- - cd packages/subgraph
30- - npm run refresh-abis
31- - |
32- if [ -n "$(git diff --name-only)" ]; then
33- echo "ABIs not up-to-date in packages/subgraph, need to run 'npm run refresh-abis'"
34- exit 1
35- fi
36-
37- - name : check-dapp-abi
38- image : node:18.19
39- commands :
40- - cd packages/protected-data-delivery-dapp/deployment
41- - npm run refresh-abis
42- - |
43- if [ -n "$(git diff --name-only)" ]; then
44- echo "ABIs not up-to-date in protected-data-delivery-dapp/abis, need to run 'npm run refresh-abis'"
45- exit 1
46- fi
47-
48- ---
491# deploy DataProtector smart contract to prod, dev or staging
502kind : pipeline
513type : docker
Original file line number Diff line number Diff line change 1+ name : Root checks
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ changed-files :
7+ name : Detect Changes
8+ runs-on : ubuntu-latest
9+ outputs :
10+ matrix : ${{ steps.changed.outputs.all_changed_and_modified_files }}
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+
16+ - name : Detect changed files
17+ id : changed
18+ uses : tj-actions/changed-files@v45
19+ with :
20+ matrix : ' true'
21+ dir_names : ' true'
22+ dir_names_max_depth : 3
23+ files : |
24+ packages/sdk/**
25+ packages/subgraph/**
26+ packages/protected-data-delivery-dapp/deployment/**
27+
28+ build-and-test :
29+ name : Build & Test Modified Packages
30+ needs : [changed-files]
31+ runs-on : ubuntu-latest
32+ strategy :
33+ matrix :
34+ package : ${{ fromJSON(needs.changed-files.outputs.matrix) }}
35+ max-parallel : 4
36+ fail-fast : false
37+ steps :
38+ - uses : actions/checkout@v4
39+ - uses : actions/setup-node@v4
40+ with :
41+ node-version : ' 18'
42+
43+ - name : Install dependencies and run tests for ${{ matrix.package }}
44+ working-directory : ${{ matrix.package }}
45+ run : |
46+ npm run refresh-abis
You can’t perform that action at this time.
0 commit comments