Skip to content

Commit

Permalink
CI: remove push contraints for tests (#63)
Browse files Browse the repository at this point in the history
* ci: remove push contraints for tests

* test: fix failin test in context.test.ts
  • Loading branch information
josemarinas authored Mar 1, 2024
1 parent 3fc71af commit f9fd76d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 27 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/configs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
workflow_call:
push:
paths:
- 'configs/**'
- '.github/workflows/configs-*.yml'

jobs:
formatting-linting:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/contracts-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
INFURA_API_KEY:
required: true
push:
paths:
- 'contracts/**'
- '.github/workflows/contracts-*.yml'

jobs:
formatting-linting:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
workflow_call:
push:
paths:
- 'sdk/**'
- '.github/workflows/sdk-*.yml'

jobs:
formatting-linting:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/subgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ on:
workflow_dispatch:
workflow_call:
push:
paths:
- 'contracts/**'
- 'subgraph/**'
- '.github/workflows/subgraph-*.yml'

jobs:
formatting-linting:
uses: ./.github/workflows/formatting-linting.yml
Expand Down
19 changes: 6 additions & 13 deletions sdk/test/unit/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,12 @@ describe('Context instances', () => {
for (const provider of context.web3Providers) {
expect(provider).toBeInstanceOf(JsonRpcProvider);
expect(provider.connection.url).toBe('https://goerli.base.org/');
provider
.getNetwork()
.then(nw => {
expect(nw.chainId).toEqual(84531);
expect(nw.name).toEqual('baseGoerli');
expect(nw.ensAddress).toEqual(
LIVE_CONTRACTS[SupportedVersion.LATEST].baseGoerli
.ensRegistryAddress
);
})
.catch(err => {
throw err;
});
const network = provider.network;
expect(network.chainId).toEqual(84531);
expect(network.name).toEqual('baseGoerli');
expect(network.ensAddress).toEqual(
LIVE_CONTRACTS[SupportedVersion.LATEST].baseGoerli.ensRegistryAddress
);
}
});
});

0 comments on commit f9fd76d

Please sign in to comment.