chore(ci): implement code scanning #5
Workflow file for this run
This file contains 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: Continuous Integration | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
run_ci_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.14.0" | |
- name: Install Yarn | |
run: npm install -g [email protected] | |
- name: Install packages | |
run: yarn install --frozen-lockfile | |
- name: Setup local environment | |
run: cp config.js.example config.js && ./start-ganache.sh | |
- name: Run static checks | |
run: yarn static-check | |
- name: Run size check | |
run: yarn contract-size | |
- name: Run tests | |
run: yarn test | |
scan: | |
needs: run_ci_tests | |
if: github.event_name == 'pull_request' | |
uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1 | |
release-sbom: | |
needs: run_ci_tests | |
if: github.event_name == 'push' | |
uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1 |