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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/cd-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ jobs:
with:
node-version-file: .nvmrc
cache: yarn
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
name: Build core package
working-directory: ./packages/core
- name: Install dependencies
run: yarn install --immutable
- name: Build core package
run: yarn build:core
- name: Change core version
uses: jossef/action-set-json-field@v2
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/cd-deploy-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn --ignore-scripts
- run: yarn build
name: Build core package
working-directory: ./packages/core
run: yarn --immutable
- name: Build core package
run: yarn build:core
- name: Networks list
id: networks
run: |
Expand Down Expand Up @@ -104,7 +103,7 @@ jobs:

- name: Verify Escrow Factory Proxy
if: always() && github.event.inputs.escrowFactory == 'true'
run: npx hardhat verify --network ${{ github.event.inputs.network }} ${{ steps.networks.outputs.escrow_factory }}
run: yarn hardhat verify --network ${{ github.event.inputs.network }} ${{ steps.networks.outputs.escrow_factory }}
working-directory: ./packages/core
#Commit changes to develop
- name: Check for Changes
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/cd-node-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ jobs:
with:
node-version-file: .nvmrc
cache: yarn
- run: yarn --ignore-scripts
name: Install dependencies
- run: yarn build
name: Build core package
working-directory: ./packages/core
- name: Install dependencies
run: yarn install --immutable
- name: Build core package
run: yarn build:core
- name: Change Node.js SDK version
uses: jossef/action-set-json-field@v2
if: ${{ github.event_name != 'workflow_dispatch' }}
Expand All @@ -38,8 +37,8 @@ jobs:
file: ./packages/sdk/typescript/human-protocol-sdk/package.json
field: version
value: ${{ github.event.inputs.release_version }}
- run: yarn build
name: Build SDK package
- name: Build SDK package
run: yarn build
working-directory: ./packages/sdk/typescript/human-protocol-sdk
- uses: JS-DevTools/npm-publish@v3
name: Publish
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/cd-python-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn --ignore-scripts
run: yarn install
- name: Build core package
run: yarn build
working-directory: ./packages/core
run: yarn build:core
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/cd-subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ jobs:
echo "::set-output name=continue::$MATCH"
- name: Install dependencies
if: steps.filter_networks.outputs.continue == 'true'
run: yarn
run: yarn install --immutable
- name: Build core package
if: steps.filter_networks.outputs.continue == 'true'
run: yarn build
working-directory: ./packages/core
run: yarn build:core
- name: Install Graph CLI
if: steps.filter_networks.outputs.continue == 'true'
run: yarn global add @graphprotocol/graph-cli@0.71.2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ jobs:
steps:
- uses: actions/checkout@v4.1.1
- name: Dependency Review
uses: actions/dependency-review-action@v4.5.0
uses: actions/dependency-review-action@v4.7.0
with:
show-openssf-scorecard: false
4 changes: 3 additions & 1 deletion .github/workflows/ci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Run lint
run: yarn lint
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn --ignore-scripts
run: yarn install --immutable
- name: Run protocol test
run: yarn workspace @human-protocol/core test
4 changes: 3 additions & 1 deletion .github/workflows/ci-test-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Run dashboard Server test
run: yarn workspace @human-protocol/dashboard-server test
4 changes: 3 additions & 1 deletion .github/workflows/ci-test-faucet-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Create .env file
run: cp .env.example .env
working-directory: packages/apps/faucet/server
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci-test-fortune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Run Exchange Oracle tests
run: yarn workspace @human-protocol/fortune-exchange-oracle-server test

Expand All @@ -32,6 +34,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Run Recording Oracle tests
run: yarn workspace @human-protocol/fortune-recording-oracle test
4 changes: 3 additions & 1 deletion .github/workflows/ci-test-human-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Run Job Human App unit tests
run: yarn workspace @human-protocol/human-app-server test
4 changes: 3 additions & 1 deletion .github/workflows/ci-test-job-launcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Run Job Launcher Server test
run: yarn workspace @human-protocol/job-launcher-server test
5 changes: 2 additions & 3 deletions .github/workflows/ci-test-node-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn --ignore-scripts
run: yarn install --immutable
- name: Build core package
run: yarn build
working-directory: ./packages/core
run: yarn build:core
- name: Run Node.js SDK test
run: yarn workspace @human-protocol/sdk test
5 changes: 2 additions & 3 deletions .github/workflows/ci-test-python-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install core package dependencies
run: yarn --ignore-scripts
run: yarn install --immutable
- name: Build core package
run: yarn build
working-directory: ./packages/core
run: yarn build:core
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-test-reputation-oracle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build libs
run: yarn build:libs
- name: Run reputation oracle test
run: yarn workspace @human-protocol/reputation-oracle test
6 changes: 5 additions & 1 deletion .github/workflows/ci-test-subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn
run: yarn install --immutable
- name: Build core package
run: yarn build:core
- name: Generate manifest for Polygon for tests
- run: NETWORK=polygon yarn workspace @human-protocol/subgraph generate
- name: Run subgraph test
run: yarn workspace @human-protocol/subgraph test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ yarn-error.log*

build
dist
*.tsbuildinfo
hardhat-dependency-compiler

#cache
cache
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
npx lint-staged
yarn dlx lint-staged

# Format python file changes
cd packages/sdk/python/human-protocol-sdk
Expand Down
Loading
Loading