Skip to content

Commit a3668f7

Browse files
committed
Add github workflows
1 parent eca422b commit a3668f7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Typescript
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
jobs:
8+
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup NodeJS
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 23.7.0
18+
cache: npm
19+
20+
- name: Install Hardhat
21+
run: npm install --save-dev [email protected]
22+
23+
- name: Install Dependencies
24+
run: npm install
25+
26+
- name: Install Solhint
27+
run: npm install -g solhint
28+
29+
- name: Run Lint
30+
run: solhint 'contracts/**/*.sol'
31+
32+
- name: Run Hardhat Test
33+
run: npx hardhat test --typecheck

0 commit comments

Comments
 (0)