|
10 | 10 | - v5 |
11 | 11 |
|
12 | 12 | jobs: |
| 13 | + # Note: changing the name of the job disables Slither checks with the error: |
| 14 | + # Warning: Code scanning cannot determine the alerts introduced by this pull |
| 15 | + # request, because 1 configuration present on refs/heads/develop was not found: |
| 16 | + # |
| 17 | + # Actions workflow (main.yml) |
| 18 | + # ❓ .github/workflows/main.yml:coverage |
13 | 19 | coverage: |
14 | 20 | runs-on: ubuntu-latest |
15 | 21 | steps: |
16 | 22 | - name: Checkout |
17 | 23 | uses: actions/checkout@v4 |
18 | | - - name: Init |
| 24 | + - name: Set up Nodejs |
| 25 | + uses: actions/setup-node@v4 |
| 26 | + with: |
| 27 | + node-version: 20 |
| 28 | + cache: 'npm' # Cache dependencies |
| 29 | + - name: Install dependencies |
19 | 30 | run: npm ci |
| 31 | + - name: Build |
| 32 | + run: npm run build |
| 33 | + - name: Check storage layout |
| 34 | + run: npm run test-storage-layout |
| 35 | + - name: Run deployment |
| 36 | + # Basic deployment to make sure everything is ok. |
| 37 | + # Could be removed in the future if not relevant. |
| 38 | + run: npm run deploy |
20 | 39 | - name: Run coverage |
21 | 40 | run: npm run coverage |
22 | 41 | - name: Upload coverage reports to Codecov |
23 | 42 | uses: codecov/codecov-action@v4.0.1 |
24 | 43 | with: |
25 | 44 | token: ${{ secrets.CODECOV_TOKEN }} |
26 | 45 | slug: iExecBlockchainComputing/PoCo |
27 | | - - name: Run static analysis with slither |
| 46 | + - name: Run static analysis with Slither |
28 | 47 | uses: crytic/slither-action@v0.4.0 |
29 | | - id: slither |
30 | 48 | with: |
31 | 49 | target: "contracts/tools/testing/slither/" |
32 | 50 | solc-version: '0.8.21' |
33 | 51 | slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/ |
34 | | - node-version: "20" |
35 | 52 | fail-on: none # TODO set this to high or other |
36 | 53 | sarif: results.sarif |
37 | 54 | - name: Upload SARIF file |
38 | 55 | uses: github/codeql-action/upload-sarif@v3 |
39 | 56 | with: |
40 | | - sarif_file: ${{ steps.slither.outputs.sarif }} |
| 57 | + sarif_file: results.sarif |
0 commit comments