Skip to content

Commit

Permalink
chore(ci): implement code scanning (#32)
Browse files Browse the repository at this point in the history
Implement PR code scanning and SBOM on release.
  • Loading branch information
jscaltreto committed Jan 23, 2024
1 parent adb2a38 commit 1662356
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Continuous Integration
on:
pull_request:
push:
branches: [master]
jobs:
lint-and-test:
runs-on: ubuntu-latest
Expand All @@ -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

Expand All @@ -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

0 comments on commit 1662356

Please sign in to comment.