Skip to content

Commit

Permalink
Try to run tests in ci
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schiavini <[email protected]>
  • Loading branch information
DanielSchiavini committed Aug 26, 2024
1 parent 5f5cbd6 commit a1418e0
Show file tree
Hide file tree
Showing 8 changed files with 5,492 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: test.yml
on:
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- run: npm ci
- run: npx hardhat node &
- run: npm test
env:
ETH_RPC: ${{ secrets.ETH_RPC }}
OPTIMISM_RPC: ${{ secrets.OPTIMISM_RPC }}
XDAI_RPC: ${{ secrets.XDAI_RPC }}
POLYGON_RPC: ${{ secrets.POLYGON_RPC }}
FANTOM_RPC: ${{ secrets.FANTOM_RPC }}
MOONBEAM_RPC: ${{ secrets.MOONBEAM_RPC }}
KAVA_RPC: ${{ secrets.KAVA_RPC }}
ARBITRUM_RPC: ${{ secrets.ARBITRUM_RPC }}
CELO_RPC: ${{ secrets.CELO_RPC }}
AVALANCHE_RPC: ${{ secrets.AVALANCHE_RPC }}
AURORA_RPC: ${{ secrets.AURORA_RPC }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
node_modules
dist/**/*
lib/**/*
package-lock.json
pnpm-lock.yaml
yarn.lock
test/temp.test.ts
test/rpcUrls.test.ts
4 changes: 4 additions & 0 deletions hardhat.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.24",
};
Loading

0 comments on commit a1418e0

Please sign in to comment.