Skip to content

Commit

Permalink
✅ update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
whonion committed Dec 23, 2023
1 parent 4351f94 commit 0848d91
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
49 changes: 40 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,54 @@
name: Test

on: [push]
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['18.x', '19.x', '20.x']

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install

- name: Set Global TypeScript
run: npm install -g typescript

- name: Build TypeScript
run: tsc --project tsconfig.json

test:
needs: build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ['18.x', '19.x', '20.x']
env: # Set environment variables from repository secrets

env:
ETHERSCANKEY: ${{ secrets.ETHERSCANKEY }}
RPCURL: ${{ secrets.RPCURL }}
EXP_URL: 'https://etherscan.io'

EXP_URL: 'https://arbiscan.io'

timeout-minutes: 2

steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -27,5 +58,5 @@ jobs:
- name: Install Dependencies
run: npm i

- name: Test Run
run: node test.js
- name: Test Running
run: npm run start
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Status](https://img.shields.io/badge/status-active-success.svg)](https://github.com/whonion/js-sniffer-deployed-contracts/blob/main/) [![Build TS](https://github.com/whonion/js-sniffer-deployed-contracts/actions/workflows/build.yml/badge.svg)](https://github.com/whonion/js-sniffer-deployed-contracts/actions/workflows/build.yml) ![Node Version](https://img.shields.io/badge/Node.js-20.5.1-blue.svg) ![Ethers Version](https://img.shields.io/badge/ethers-5.70-red.svg) ![Axios Version](https://img.shields.io/badge/axios-0.27.2-orange.svg) [![HitCount](https://hits.dwyl.com/whonion/js-sniffer-deployed-contracts.svg)](https://hits.dwyl.com/whonion/js-sniffer-deployed-contracts)</br>
[![Status](https://img.shields.io/badge/status-active-success.svg)](https://github.com/whonion/js-sniffer-deployed-contracts/blob/main/) [![Test Run](https://github.com/whonion/js-sniffer-deployed-contracts/actions/workflows/test.yml/badge.svg)](https://github.com/whonion/js-sniffer-deployed-contracts/actions/workflows/test.yml) [![Build TS](https://github.com/whonion/js-sniffer-deployed-contracts/actions/workflows/build.yml/badge.svg)](https://github.com/whonion/js-sniffer-deployed-contracts/actions/workflows/build.yml) ![Node Version](https://img.shields.io/badge/Node.js-20.5.1-blue.svg) ![Ethers Version](https://img.shields.io/badge/ethers-5.70-red.svg) ![Axios Version](https://img.shields.io/badge/axios-0.27.2-orange.svg) [![HitCount](https://hits.dwyl.com/whonion/js-sniffer-deployed-contracts.svg)](https://hits.dwyl.com/whonion/js-sniffer-deployed-contracts)</br>
## JS Sniffer deployed contracts
This script outputs address,tiker etc. of every new contract deployed on the EVM-based chains.

Expand Down

0 comments on commit 0848d91

Please sign in to comment.