Skip to content

Commit

Permalink
Remove dependency on Infura for tests (spruceid#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel authored Sep 27, 2022
1 parent 3814033 commit f32a960
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
name: ci

on: [push, pull_request_target]
on: [push, pull_request]

env:
INFURA_ID: ${{ secrets.INFURA_ID }}
INFURA_SECRET: ${{ secrets.INFURA_SECRET }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: ${{ github.event_name != 'pull_request_target' }}
- uses: actions/checkout@v2
if: ${{ github.event_name == 'pull_request_target' }}
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install
run: |
npm install
Expand Down
5 changes: 1 addition & 4 deletions packages/siwe/lib/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ describe(`EIP1271`, () => {
signature: test_fields.signature,
},
{
provider: new providers.InfuraProvider(1, {
projectId: process.env.INFURA_ID,
projectSecret: process.env.INFURA_SECRET,
}),
provider: new providers.CloudflareProvider(1),
}
)
.then(({ success }) => success)
Expand Down

0 comments on commit f32a960

Please sign in to comment.