Skip to content

Commit

Permalink
use new auth and use modern ci syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ZumZoom committed Aug 8, 2023
1 parent b006ee3 commit a3cf416
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 60 deletions.
25 changes: 0 additions & 25 deletions .github/actions/setup/action.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches: [ master ]
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- run: yarn
- run: yarn lint

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- run: yarn
- run: yarn test
env:
RPC_AUTH_HEADER: ${{ secrets.RPC_AUTH_HEADER }}
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
AVAX_RPC_URL: ${{ secrets.AVAX_RPC_URL}}
ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- run: yarn
- run: yarn coverage
env:
RPC_AUTH_HEADER: ${{ secrets.RPC_AUTH_HEADER }}
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
AVAX_RPC_URL: ${{ secrets.AVAX_RPC_URL}}
ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}
- uses: codecov/codecov-action@v3
35 changes: 0 additions & 35 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 3 additions & 0 deletions hardhat.networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ function register (name, chainId, url, privateKey, etherscanNetworkName, ethersc
if (url && privateKey && etherscanKey) {
networks[name] = {
url,
httpHeaders: {
'auth-key': process.env.RPC_AUTH_HEADER,
},
chainId,
accounts: [privateKey],
};
Expand Down

0 comments on commit a3cf416

Please sign in to comment.