Add github workflows #1
Workflow file for this run
This file contains hidden or 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: Typescript | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 23.7.0 | |
| cache: npm | |
| - name: Install Hardhat | |
| run: npm install --save-dev [email protected] | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Install Solhint | |
| run: npm install -g solhint | |
| - name: Run Lint | |
| run: solhint 'contracts/**/*.sol' | |
| - name: Run Hardhat Test | |
| run: npx hardhat test --typecheck |