fix bytes parsing on test calls to get network Id (#55) #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ethereum Typescript | |
on: | |
push: | |
paths: | |
- 'gateway-eth-ts/**' | |
- '.github/**' | |
jobs: | |
ethereum-build: | |
name: Build, lint and test the ethereum libraries on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ['20.x'] | |
os: [ubuntu-latest] | |
defaults: | |
run: | |
working-directory: ./gateway-eth-ts | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Use Node ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
# - name: Cache node dependencies | |
# uses: actions/cache@v2 | |
# with: | |
# path: | | |
# ./node_modules | |
# key: yarn-ethereum-${{ hashFiles('yarn.lock') }} | |
# - name: NPM login | |
# run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc | |
- name: Install | |
run: yarn | |
# - name: Lint | |
# run: yarn lint | |
- name: Build dependencies | |
run: (cd ../smart-contract && yarn && yarn build) | |
- name: Create Typechain Typescript type | |
run: yarn copy-contracts | |
- name: Run Anvil Node | |
run: anvil --fork-url ${{ vars.BNB_TESTNET_RPC_URL }} & | |
- name: Run tests | |
run: yarn test-local | |
- name: Build | |
run: yarn build |