fix: fix hardhat.config.js #19
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 contracts | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
jobs: | |
static-code-analysis: | |
name: Static Code Analysis | |
runs-on: ubuntu-latest | |
if: github.actor != 'secured-finance-machine-user[bot]' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run Prettier | |
run: npm run check:prettier | |
- name: Run ESLint | |
run: npm run check:lint | |
# build-and-unit-test: | |
# name: Unit Tests | |
# runs-on: ubuntu-latest | |
# if: github.actor != 'secured-finance-machine-user[bot]' | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-node@v3 | |
# with: | |
# node-version-file: ".nvmrc" | |
# - name: Install Dependencies | |
# run: npm ci | |
# - name: Run Unit Tests | |
# run: npm run coverage | |
# - name: Upload Code Coverage | |
# uses: codecov/codecov-action@v5 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
# fail_ci_if_error: true |