✅ add build.yml | fix test.js #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['18.x', '19.x', '20.x'] | |
env: # Set environment variables from repository secrets | |
ETHERSCANKEY: ${{ secrets.ETHERSCANKEY }} | |
RPCURL: ${{ secrets.RPCURL }} | |
EXP_URL: 'https://etherscan.io' | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm i | |
- name: Test Run | |
run: node test.js |