Skip to content

Commit 57808d4

Browse files
authored
Merge pull request #3308 from humanprotocol/develop
Release 2025-05-13
2 parents bf6ff51 + 2188b31 commit 57808d4

File tree

349 files changed

+8445
-5467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+8445
-5467
lines changed

.github/workflows/cd-core.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version-file: .nvmrc
16+
cache: yarn
1617
- run: yarn --ignore-scripts
1718
name: Install dependencies
1819
- run: yarn build

.github/workflows/cd-deploy-contracts.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
- uses: actions/setup-node@v4
3939
with:
4040
node-version-file: .nvmrc
41+
cache: yarn
4142
- name: Install dependencies
42-
run: npm install --global yarn && yarn --ignore-scripts
43+
run: yarn --ignore-scripts
4344
- run: yarn build
4445
name: Build core package
4546
working-directory: ./packages/core

.github/workflows/cd-node-sdk.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- uses: actions/setup-node@v4
1919
with:
2020
node-version-file: .nvmrc
21+
cache: yarn
2122
- run: yarn --ignore-scripts
2223
name: Install dependencies
2324
- run: yarn build

.github/workflows/cd-python-sdk.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- run: yarn --ignore-scripts
19-
name: Install dependencies
20-
- run: yarn build
21-
name: Build core package
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: .nvmrc
21+
cache: yarn
22+
- name: Install dependencies
23+
run: yarn --ignore-scripts
24+
- name: Build core package
25+
run: yarn build
2226
working-directory: ./packages/core
2327
- name: Set up Python
2428
uses: actions/setup-python@v5

.github/workflows/cd-subgraph.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
max-parallel: 3
2828
steps:
2929
- uses: actions/checkout@v4
30-
- uses: actions/setup-node@v4
31-
name: Set up Node.js
30+
- uses: actions/setup-node@v4
3231
with:
3332
node-version-file: .nvmrc
33+
cache: yarn
3434
- name: Filter Networks
3535
id: filter_networks
3636
run: |
@@ -47,30 +47,30 @@ jobs:
4747
done
4848
echo "Match found: $MATCH"
4949
echo "::set-output name=continue::$MATCH"
50-
- run: npm install --global yarn && yarn
51-
name: Install dependencies
50+
- name: Install dependencies
5251
if: steps.filter_networks.outputs.continue == 'true'
53-
- run: yarn build
54-
name: Build core package
52+
run: yarn
53+
- name: Build core package
54+
if: steps.filter_networks.outputs.continue == 'true'
55+
run: yarn build
5556
working-directory: ./packages/core
57+
- name: Install Graph CLI
5658
if: steps.filter_networks.outputs.continue == 'true'
57-
- run: yarn global add @graphprotocol/[email protected]
58-
name: Install Graph CLI
59+
run: yarn global add @graphprotocol/[email protected]
60+
- name: Authenticate Graph CLI
5961
if: steps.filter_networks.outputs.continue == 'true'
60-
- run: graph auth --studio ${API_KEY}
61-
name: Authenticate Graph CLI
62+
run: graph auth --studio ${API_KEY}
6263
env:
6364
API_KEY: ${{ secrets.HP_GRAPH_API_KEY }}
65+
- name: Generate and build Subgraph
6466
if: steps.filter_networks.outputs.continue == 'true'
65-
- run: yarn generate && yarn build
66-
name: Generate and build Subgraph
67+
run: yarn generate && yarn build
6768
working-directory: ./packages/sdk/typescript/subgraph
6869
env:
6970
NETWORK: ${{ matrix.network.name }}
71+
- name: Deploy Subgraph
7072
if: steps.filter_networks.outputs.continue == 'true'
71-
- run: graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }}
72-
name: Deploy Subgraph
73+
run: graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }}
7374
working-directory: ./packages/sdk/typescript/subgraph
7475
env:
7576
NETWORK: ${{ matrix.network.name }}
76-
if: steps.filter_networks.outputs.continue == 'true'
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
name: "Dependency Review"
2-
on: [pull_request]
1+
name: Dependency Review
2+
on:
3+
pull_request:
4+
branches:
5+
- develop
6+
- main
37

48
permissions:
59
contents: read
@@ -8,7 +12,6 @@ jobs:
812
dependency-review:
913
runs-on: ubuntu-latest
1014
steps:
11-
- name: "Checkout Repository"
12-
uses: actions/[email protected]
13-
- name: "Dependency Review"
15+
- uses: actions/[email protected]
16+
- name: Dependency Review
1417
uses: actions/[email protected]

.github/workflows/ci-lint.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: Lint check
22

33
on:
44
push:
5-
branches:
6-
- "main"
7-
pull_request:
8-
workflow_dispatch:
5+
paths-ignore:
6+
- 'packages/examples/cvat/**'
97

108
jobs:
119
lint:
@@ -16,7 +14,8 @@ jobs:
1614
- uses: actions/setup-node@v4
1715
with:
1816
node-version-file: .nvmrc
19-
- run: npm install --global yarn && yarn
20-
name: Install dependencies
21-
- run: yarn lint
22-
name: Run lint
17+
cache: yarn
18+
- name: Install dependencies
19+
run: yarn
20+
- name: Run lint
21+
run: yarn lint

.github/workflows/ci-test-core.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ name: Protocol check
22

33
on:
44
push:
5-
branches:
6-
- 'main'
7-
pull_request:
85
paths:
96
- 'packages/core/**'
10-
workflow_dispatch:
117

128
jobs:
139
core-test:
@@ -18,7 +14,8 @@ jobs:
1814
- uses: actions/setup-node@v4
1915
with:
2016
node-version-file: .nvmrc
21-
- run: npm install --global yarn && yarn --ignore-scripts
22-
name: Install dependencies
23-
- run: yarn workspace @human-protocol/core test
24-
name: Run protocol test
17+
cache: yarn
18+
- name: Install dependencies
19+
run: yarn --ignore-scripts
20+
- name: Run protocol test
21+
run: yarn workspace @human-protocol/core test

.github/workflows/ci-test-dashboard.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ name: Dashboard Check
22

33
on:
44
push:
5-
branches:
6-
- 'main'
7-
pull_request:
85
paths:
96
- 'packages/core/**'
107
- 'packages/sdk/typescript/human-protocol-sdk/**'
118
- 'packages/apps/dashboard/**'
12-
workflow_dispatch:
139

1410
jobs:
1511
dashboard-server-test:
@@ -20,7 +16,8 @@ jobs:
2016
- uses: actions/setup-node@v4
2117
with:
2218
node-version-file: .nvmrc
23-
- run: npm install --global yarn && yarn
24-
name: Install dependencies
25-
- run: yarn workspace @human-protocol/dashboard-server test
26-
name: Run dashboard Server test
19+
cache: yarn
20+
- name: Install dependencies
21+
run: yarn
22+
- name: Run dashboard Server test
23+
run: yarn workspace @human-protocol/dashboard-server test

.github/workflows/ci-test-faucet-server.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ name: Faucet server check
22

33
on:
44
push:
5-
branches:
6-
- 'main'
7-
pull_request:
85
paths:
96
- 'packages/core/**'
107
- 'packages/sdk/typescript/human-protocol-sdk/**'
118
- 'packages/apps/faucet/server/**'
12-
workflow_dispatch:
139

1410
jobs:
1511
faucet-server-test:
@@ -20,10 +16,11 @@ jobs:
2016
- uses: actions/setup-node@v4
2117
with:
2218
node-version-file: .nvmrc
23-
- run: npm install --global yarn && yarn
24-
name: Install dependencies
25-
- run: cp .env.example .env
26-
name: Create .env file
19+
cache: yarn
20+
- name: Install dependencies
21+
run: yarn
22+
- name: Create .env file
23+
run: cp .env.example .env
2724
working-directory: packages/apps/faucet/server
28-
- run: yarn workspace @human-protocol/faucet-server test
29-
name: Run faucet/server test
25+
- name: Run faucet/server test
26+
run: yarn workspace @human-protocol/faucet-server test

.github/workflows/ci-test-fortune.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ name: Fortune check
22

33
on:
44
push:
5-
branches:
6-
- 'main'
7-
pull_request:
85
paths:
96
- 'packages/core/**'
107
- 'packages/sdk/typescript/human-protocol-sdk/**'
118
- 'packages/apps/fortune/**'
12-
workflow_dispatch:
139

1410
jobs:
1511
fortune-exchange-oracle-test:
@@ -20,16 +16,22 @@ jobs:
2016
- uses: actions/setup-node@v4
2117
with:
2218
node-version-file: .nvmrc
23-
- run: npm install --global yarn && yarn
24-
name: Install dependencies
25-
- run: yarn workspace @human-protocol/fortune-exchange-oracle-server test
26-
name: Run Exchange Oracle tests
19+
cache: yarn
20+
- name: Install dependencies
21+
run: yarn
22+
- name: Run Exchange Oracle tests
23+
run: yarn workspace @human-protocol/fortune-exchange-oracle-server test
24+
2725
fortune-recording-oracle-test:
2826
name: Fortune Recording Oracle Tests
2927
runs-on: ubuntu-latest
3028
steps:
3129
- uses: actions/checkout@v4
32-
- run: npm install --global yarn && yarn
33-
name: Install dependencies
34-
- run: yarn workspace @human-protocol/fortune-recording-oracle test
35-
name: Run Recording Oracle tests
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version-file: .nvmrc
33+
cache: yarn
34+
- name: Install dependencies
35+
run: yarn
36+
- name: Run Recording Oracle tests
37+
run: yarn workspace @human-protocol/fortune-recording-oracle test

.github/workflows/ci-test-human-app.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ name: Human App Check
22

33
on:
44
push:
5-
branches:
6-
- 'main'
7-
pull_request:
85
paths:
96
- 'packages/core/**'
107
- 'packages/sdk/typescript/human-protocol-sdk/**'
118
- 'packages/apps/human-app/**'
12-
workflow_dispatch:
139

1410
jobs:
1511
job-app-server-test:
@@ -20,7 +16,8 @@ jobs:
2016
- uses: actions/setup-node@v4
2117
with:
2218
node-version-file: .nvmrc
23-
- run: npm install --global yarn && yarn
24-
name: Install dependencies
25-
- run: yarn workspace @human-protocol/human-app-server test
26-
name: Run Job Human App unit tests
19+
cache: yarn
20+
- name: Install dependencies
21+
run: yarn
22+
- name: Run Job Human App unit tests
23+
run: yarn workspace @human-protocol/human-app-server test

.github/workflows/ci-test-job-launcher.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ name: Job Launcher Check
22

33
on:
44
push:
5-
branches:
6-
- 'main'
7-
pull_request:
85
paths:
96
- 'packages/core/**'
107
- 'packages/sdk/typescript/human-protocol-sdk/**'
118
- 'packages/apps/job-launcher/**'
12-
workflow_dispatch:
139

1410
jobs:
1511
job-launcher-server-test:
1612
name: Job Launcher Server Test
1713
runs-on: ubuntu-latest
1814
steps:
1915
- uses: actions/checkout@v4
20-
- run: npm install --global yarn && yarn
21-
name: Install dependencies
22-
- run: yarn workspace @human-protocol/job-launcher-server test
23-
name: Run Job Launcher Server test
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version-file: .nvmrc
19+
cache: yarn
20+
- name: Install dependencies
21+
run: yarn
22+
- name: Run Job Launcher Server test
23+
run: yarn workspace @human-protocol/job-launcher-server test

.github/workflows/ci-test-node-sdk.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ name: Node.js SDK check
22

33
on:
44
push:
5-
branches:
6-
- 'main'
7-
pull_request:
85
paths:
96
- 'packages/core/**'
107
- 'packages/sdk/typescript/human-protocol-sdk/**'
11-
workflow_dispatch:
128

139
jobs:
1410
node-sdk-test:
@@ -19,10 +15,11 @@ jobs:
1915
- uses: actions/setup-node@v4
2016
with:
2117
node-version-file: .nvmrc
22-
- run: npm install --global yarn && yarn --ignore-scripts
23-
name: Install dependencies
24-
- run: yarn build
25-
name: Build core package
18+
cache: yarn
19+
- name: Install dependencies
20+
run: yarn --ignore-scripts
21+
- name: Build core package
22+
run: yarn build
2623
working-directory: ./packages/core
27-
- run: yarn workspace @human-protocol/sdk test
28-
name: Run Node.js SDK test
24+
- name: Run Node.js SDK test
25+
run: yarn workspace @human-protocol/sdk test

0 commit comments

Comments
 (0)