From 1662356f9e60bb3f18cb6d09f95f628f0cc3637f Mon Sep 17 00:00:00 2001 From: Jake Scaltreto Date: Tue, 23 Jan 2024 10:05:33 -0500 Subject: [PATCH] chore(ci): implement code scanning (#32) Implement PR code scanning and SBOM on release. --- .github/workflows/ci.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec2dd78..117f2bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,8 @@ name: Continuous Integration on: pull_request: + push: + branches: [master] jobs: lint-and-test: runs-on: ubuntu-latest @@ -9,22 +11,22 @@ jobs: uses: actions/checkout@v3 with: submodules: 'true' - + - name: Install Node uses: actions/setup-node@v3 - + - name: Install Solhint - run: npm i + run: npm i - name: Run Linter run: npm run lint - name: Build Forge Image run: make build - + - name: Run Unit Tests run: make test - + - name: Run Integration Tests run: make anvil-test @@ -33,3 +35,12 @@ jobs: with: fail-on: none + scan: + needs: lint-and-test + if: github.event_name == 'pull_request' + uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1 + + release-sbom: + needs: lint-and-test + if: github.event_name == 'push' + uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1