Skip to content

Commit

Permalink
testin
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo committed Jan 3, 2024
1 parent bd7bcd9 commit 2b33e6b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,6 @@ jobs:
run: |
forge test -vvv
id: test

hardhat-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: setup
run: npm i
- name: test
run: npx hardhat test

lint:
strategy:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/testhardhat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Main CI

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]


jobs:
lint-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: setup
run: npm i
- name: test
run: npm run test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"deployApplications:backstopTestnet0": "npx hardhat run src/deployment/4_deployL1Applications.js --network sepolia && npx hardhat run src/deployment/5_deployL2Applications.js --network backstopTestnet0 && npx hardhat run src/deployment/6_chainInfoUpdate.js --network sepolia && npx hardhat run src/deployment/7_claimChainInfo.js --network backstopTestnet0",
"compile": "npx hardhat compile",
"lintjs": "npx eslint ./src",
"lintjs:fix": "npx eslint ./src --fix"
"lintjs:fix": "npx eslint ./src --fix",
"test": "npx hardhat test"
},
"dependencies": {
"axios": "^1.6.2",
Expand Down

0 comments on commit 2b33e6b

Please sign in to comment.