fix solc use forge std foundry #538
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: Lint | |
| on: | |
| push: | |
| branches: [$default-branch] | |
| pull_request: | |
| branches: | |
| - "**" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: 16 | |
| cache: "pnpm" | |
| cache-dependency-path: | | |
| pnpm-lock.yaml | |
| docs/pnpm-lock.yaml | |
| # Retry logic for caching errors | |
| - name: Setup cache with retry | |
| run: | | |
| for i in {1..3}; do | |
| pnpm store path && break || sleep $((i * 5)) | |
| done | |
| - name: Install | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm build | |
| - name: lint | |
| run: pnpm lint | |
| - name: Check dependency versions | |
| run: node scripts/check-dependencies.js | |
| - name: Install website | |
| working-directory: docs/ | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: Lint website | |
| working-directory: docs/ | |
| run: pnpm lint |