Skip to content

Commit 410e7c1

Browse files
committed
ci: use GHA
1 parent 6470405 commit 410e7c1

File tree

8 files changed

+46
-777
lines changed

8 files changed

+46
-777
lines changed

.drone.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
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
502
kind: pipeline
513
type: docker

.github/workflows/root-checks.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

packages/dataprotector-deserializer/.drone.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

packages/protected-data-delivery-dapp/.drone.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)