chore(main): release poco 6.2.0 #1761
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: PoCo Contracts CI | |
| on: | |
| push: | |
| branches: | |
| - main # To trigger coverage updates of `main` on Codecov | |
| pull_request: | |
| workflow_call: | |
| concurrency: | |
| group: ${{ github.ref }}-ci | |
| cancel-in-progress: true | |
| jobs: | |
| # TODO extract common steps into reusable workflows to resolve | |
| # concurrency issue. | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Nodejs | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' # Cache dependencies | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check code formatting | |
| run: npm run format:check | |
| - name: Check documentation is up-to-date | |
| run: npm run doc:check | |
| - name: Build | |
| run: npm run build | |
| - name: Check storage layout | |
| run: npm run check-storage-layout | |
| - name: Test deployment | |
| run: npm run deploy | |
| - name: Run coverage | |
| run: npm run coverage | |
| - name: Run partial native tests | |
| run: npm run test:native | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/[email protected] | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: iExecBlockchainComputing/PoCo | |
| - name: Run static analysis with Slither | |
| uses: crytic/[email protected] | |
| with: | |
| target: 'contracts/tools/testing/slither/' | |
| solc-version: '0.8.21' | |
| slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/ | |
| fail-on: none # TODO set this to high or other | |
| sarif: results.sarif | |
| - name: Upload SARIF file | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: results.sarif |