Skip to content

Commit

Permalink
chore: add unified test action for all contract versions (safe-global…
Browse files Browse the repository at this point in the history
…#328)

* Add unified test action for ethers with all contract versions

* Add unified test action for web3 with all contract versions
  • Loading branch information
dasanra authored Jan 25, 2023
1 parent 2615f6e commit b1e69b9
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 215 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: |
yarn install
yarn install --frozen-lockfile
yarn build
yarn test:ci
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/test_contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Safe Core SDK Test - Contracts
on:
pull_request:
push:
branches:
- main
- development
env:
INFURA_KEY: ${{ secrets.INFURA_KEY }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
provider: [ethers, web3]
contract-version: [v1.0.0, v1.1.1, v1.2.0, v1.3.0]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: |
yarn install --frozen-lockfile
yarn build
- name: Test ${{ matrix.provider }} - Safe ${{ matrix.contract-version }}
run: |
cd packages/safe-core-sdk
yarn test:hardhat:${{ matrix.provider }}:${{ matrix.contract-version }}
26 changes: 0 additions & 26 deletions .github/workflows/test_ethers_V1_0_0.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/test_ethers_V1_1_1.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/test_ethers_V1_2_0.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/test_ethers_V1_3_0.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/test_web3_V1_0_0.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/test_web3_V1_1_1.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/test_web3_V1_2_0.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/test_web3_V1_3_0.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
typedoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: |
Expand Down

0 comments on commit b1e69b9

Please sign in to comment.