Skip to content

new artifacts 2

new artifacts 2 #7

Workflow file for this run

name: "ETH Cyrograf: Deploy contract to testnet"
on:
workflow_dispatch: {}
pull_request:
branches: [ master ]
paths: [ 'eth/**' ]
types: [ closed ]
jobs:
deploy:
name: ETH Deploy
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
- name: ETH Deploy
uses: piotrjwegrzyn/[email protected]
with:
contract-name: 'Cyrograf'
contract-filename: 'cyrograf'
contract-connector: 'sc_connector'
parent-dir: 'eth/'
deployer-pk: ${{ secrets.DEPLOYER_PK }}
rpc-url: ${{ secrets.RPC_ETH_SEPOLIA_HTTPS }}
integration_test:
name: ETH integration tests
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Environment Setup
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
run: npm install web3
- uses: actions/download-artifact@master
with:
name: sc_connector.json
- name: Run tests
env:
RPC_URL: ${{ secrets.RPC_ETH_SEPOLIA_HTTPS }}
ACCOUNT_ADDRESS: ${{ secrets.DEPLOYER_ADDRESS }}
PRIVATE_KEY: ${{ secrets.DEPLOYER_PK }}
run: |
echo "old connector:\n\n"
cat integration/sc_connector.json
rm integration/sc_connector.json
cp sc_connector.json integration/sc_connector.json
echo "new connector:\n\n"
cat integration/sc_connector.json
node --no-deprecation integration/tester.js
shell: bash