Skip to content

Commit 0842572

Browse files
committed
Debug deploy workflow
1 parent 9c9b47b commit 0842572

File tree

3 files changed

+30
-35
lines changed

3 files changed

+30
-35
lines changed

.github/workflows/sharing-smart-contract-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
build-and-test:
15+
ci:
1616
uses: ./.github/workflows/sharing-smart-contracts-reusable.yml
1717
with:
1818
node-version: 18

.github/workflows/sharing-smart-contract-deploy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,11 @@ jobs:
4343
# fi
4444
# echo "Deployment validated!"
4545

46-
build-and-test:
46+
ci:
4747
needs: validate
48-
runs-on: ubuntu-latest
49-
permissions:
50-
contents: write
51-
steps:
52-
- uses: actions/checkout@v4
53-
- uses: ./.github/actions/composite/sharing-smart-contract-common
54-
with:
55-
node-version: '18'
48+
uses: ./.github/workflows/sharing-smart-contracts-reusable.yml
49+
with:
50+
node-version: 18
5651

5752
# deploy:
5853
# needs: build-and-test

.github/workflows/sharing-smart-contracts-reusable.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -94,31 +94,31 @@ jobs:
9494
shell: bash
9595
run: npm run upgrade-local-fork -- --network local-bellecour-fork
9696

97-
# TODO check why the CI does not fail when the following error occurs
98-
# (when the RPC node is not available):
99-
# 1) Uncaught error outside test suite
100-
- name: Hardhat tests
101-
working-directory: packages/sharing-smart-contract
102-
shell: bash
103-
run: npm run test -- --network local-bellecour-fork
104-
105-
- name: Test deployment script
106-
working-directory: packages/sharing-smart-contract
107-
shell: bash
108-
run: |
109-
POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
110-
DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
111-
npm run deploy -- --network local-bellecour-fork
112-
113-
- name: Set Directory Permissions
114-
working-directory: packages/sharing-smart-contract
115-
shell: bash
116-
run: sudo chmod -R 777 .
117-
118-
- name: Forge Tests
119-
working-directory: packages/sharing-smart-contract
120-
shell: bash
121-
run: forge test --no-match-test "invariant" -vvvv
97+
# # TODO check why the CI does not fail when the following error occurs
98+
# # (when the RPC node is not available):
99+
# # 1) Uncaught error outside test suite
100+
# - name: Hardhat tests
101+
# working-directory: packages/sharing-smart-contract
102+
# shell: bash
103+
# run: npm run test -- --network local-bellecour-fork
104+
105+
# - name: Test deployment script
106+
# working-directory: packages/sharing-smart-contract
107+
# shell: bash
108+
# run: |
109+
# POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
110+
# DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
111+
# npm run deploy -- --network local-bellecour-fork
112+
113+
# - name: Set Directory Permissions
114+
# working-directory: packages/sharing-smart-contract
115+
# shell: bash
116+
# run: sudo chmod -R 777 .
117+
118+
# - name: Forge Tests
119+
# working-directory: packages/sharing-smart-contract
120+
# shell: bash
121+
# run: forge test --no-match-test "invariant" -vvvv
122122

123123
- name: Upload SARIF file
124124
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)