chore: added workflow #6
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: CI | |
on: | |
workflow_call: | |
# https://github.com/marketplace/actions/jest-coverage-report#forks-with-no-write-permission | |
pull_request: | |
jobs: | |
ci: | |
name: Static Analysis and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: "npm" | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Collecting .env from dotenv-vault | |
run: npx dotenv-vault@latest pull -m ${{ secrets.DOTENV_ME }} -y | |
- name: Install dependencies | |
run: npm ci | |
- name: Run static analysis | |
run: make lint | |
- name: Run security tests | |
run: make sectest | |
- name: Test | |
run: make test | |