Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/cd-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cd-deploy-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: npm install --global yarn && yarn --ignore-scripts
run: yarn --ignore-scripts
- run: yarn build
name: Build core package
working-directory: ./packages/core
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cd-node-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/cd-python-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
name: Build core package
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn --ignore-scripts
- name: Build core package
run: yarn build
working-directory: ./packages/core
- name: Set up Python
uses: actions/setup-python@v5
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/cd-subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
max-parallel: 3
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Set up Node.js
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Filter Networks
id: filter_networks
run: |
Expand All @@ -47,30 +47,30 @@ jobs:
done
echo "Match found: $MATCH"
echo "::set-output name=continue::$MATCH"
- run: npm install --global yarn && yarn
name: Install dependencies
- name: Install dependencies
if: steps.filter_networks.outputs.continue == 'true'
- run: yarn build
name: Build core package
run: yarn
- name: Build core package
if: steps.filter_networks.outputs.continue == 'true'
run: yarn build
working-directory: ./packages/core
- name: Install Graph CLI
if: steps.filter_networks.outputs.continue == 'true'
- run: yarn global add @graphprotocol/graph-cli@0.71.2
name: Install Graph CLI
run: yarn global add @graphprotocol/graph-cli@0.71.2
- name: Authenticate Graph CLI
if: steps.filter_networks.outputs.continue == 'true'
- run: graph auth --studio ${API_KEY}
name: Authenticate Graph CLI
run: graph auth --studio ${API_KEY}
env:
API_KEY: ${{ secrets.HP_GRAPH_API_KEY }}
- name: Generate and build Subgraph
if: steps.filter_networks.outputs.continue == 'true'
- run: yarn generate && yarn build
name: Generate and build Subgraph
run: yarn generate && yarn build
working-directory: ./packages/sdk/typescript/subgraph
env:
NETWORK: ${{ matrix.network.name }}
- name: Deploy Subgraph
if: steps.filter_networks.outputs.continue == 'true'
- run: graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }}
name: Deploy Subgraph
run: graph deploy --studio ${NETWORK} -l ${{ github.event.inputs.label }}
working-directory: ./packages/sdk/typescript/subgraph
env:
NETWORK: ${{ matrix.network.name }}
if: steps.filter_networks.outputs.continue == 'true'
13 changes: 8 additions & 5 deletions .github/workflows/ci-dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Dependency Review"
on: [pull_request]
name: Dependency Review
on:
pull_request:
branches:
- develop
- main

permissions:
contents: read
Expand All @@ -8,7 +12,6 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4.1.1
- name: "Dependency Review"
- uses: actions/checkout@v4.1.1
- name: Dependency Review
uses: actions/dependency-review-action@v4.5.0
15 changes: 7 additions & 8 deletions .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ name: Lint check

on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:
paths-ignore:
- 'packages/examples/cvat/**'

jobs:
lint:
Expand All @@ -16,7 +14,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn lint
name: Run lint
cache: yarn
- name: Install dependencies
run: yarn
- name: Run lint
run: yarn lint
13 changes: 5 additions & 8 deletions .github/workflows/ci-test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ name: Protocol check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
workflow_dispatch:

jobs:
core-test:
Expand All @@ -18,7 +14,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn --ignore-scripts
name: Install dependencies
- run: yarn workspace @human-protocol/core test
name: Run protocol test
cache: yarn
- name: Install dependencies
run: yarn --ignore-scripts
- name: Run protocol test
run: yarn workspace @human-protocol/core test
13 changes: 5 additions & 8 deletions .github/workflows/ci-test-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Dashboard Check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/dashboard/**'
workflow_dispatch:

jobs:
dashboard-server-test:
Expand All @@ -20,7 +16,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn workspace @human-protocol/dashboard-server test
name: Run dashboard Server test
cache: yarn
- name: Install dependencies
run: yarn
- name: Run dashboard Server test
run: yarn workspace @human-protocol/dashboard-server test
17 changes: 7 additions & 10 deletions .github/workflows/ci-test-faucet-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Faucet server check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/faucet/server/**'
workflow_dispatch:

jobs:
faucet-server-test:
Expand All @@ -20,10 +16,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn
name: Install dependencies
- run: cp .env.example .env
name: Create .env file
cache: yarn
- name: Install dependencies
run: yarn
- name: Create .env file
run: cp .env.example .env
working-directory: packages/apps/faucet/server
- run: yarn workspace @human-protocol/faucet-server test
name: Run faucet/server test
- name: Run faucet/server test
run: yarn workspace @human-protocol/faucet-server test
26 changes: 14 additions & 12 deletions .github/workflows/ci-test-fortune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Fortune check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/fortune/**'
workflow_dispatch:

jobs:
fortune-exchange-oracle-test:
Expand All @@ -20,16 +16,22 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn workspace @human-protocol/fortune-exchange-oracle-server test
name: Run Exchange Oracle tests
cache: yarn
- name: Install dependencies
run: yarn
- name: Run Exchange Oracle tests
run: yarn workspace @human-protocol/fortune-exchange-oracle-server test

fortune-recording-oracle-test:
name: Fortune Recording Oracle Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn workspace @human-protocol/fortune-recording-oracle test
name: Run Recording Oracle tests
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
- name: Run Recording Oracle tests
run: yarn workspace @human-protocol/fortune-recording-oracle test
13 changes: 5 additions & 8 deletions .github/workflows/ci-test-human-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ name: Human App Check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/human-app/**'
workflow_dispatch:

jobs:
job-app-server-test:
Expand All @@ -20,7 +16,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn workspace @human-protocol/human-app-server test
name: Run Job Human App unit tests
cache: yarn
- name: Install dependencies
run: yarn
- name: Run Job Human App unit tests
run: yarn workspace @human-protocol/human-app-server test
16 changes: 8 additions & 8 deletions .github/workflows/ci-test-job-launcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ name: Job Launcher Check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
- 'packages/apps/job-launcher/**'
workflow_dispatch:

jobs:
job-launcher-server-test:
name: Job Launcher Server Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn workspace @human-protocol/job-launcher-server test
name: Run Job Launcher Server test
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
- name: Run Job Launcher Server test
run: yarn workspace @human-protocol/job-launcher-server test
17 changes: 7 additions & 10 deletions .github/workflows/ci-test-node-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ name: Node.js SDK check

on:
push:
branches:
- 'main'
pull_request:
paths:
- 'packages/core/**'
- 'packages/sdk/typescript/human-protocol-sdk/**'
workflow_dispatch:

jobs:
node-sdk-test:
Expand All @@ -19,10 +15,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm install --global yarn && yarn --ignore-scripts
name: Install dependencies
- run: yarn build
name: Build core package
cache: yarn
- name: Install dependencies
run: yarn --ignore-scripts
- name: Build core package
run: yarn build
working-directory: ./packages/core
- run: yarn workspace @human-protocol/sdk test
name: Run Node.js SDK test
- name: Run Node.js SDK test
run: yarn workspace @human-protocol/sdk test
Loading
Loading