Adds CI Tests, Lints, Compile, Build #23
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: Contracts Compile | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| checks: write | |
| actions: write | |
| contents: read | |
| concurrency: | |
| group: contracts-compile-${{ github.run_id }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| compile: | |
| name: Fast Compile Contracts | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 # Recommended by turbo team | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup | |
| with: | |
| skip-compile: 'true' | |
| - name: Cleanup on failure | |
| if: failure() | |
| run: | | |
| echo "Compilation failed. Cleaning up..." | |
| rm -rf contracts/*/src/artifacts/ |