feat: test cases for registry #19
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
# TODO: figure out how to trigger workflow from vercel for nx | |
name: Tokenomics | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/tokenomics/**' | |
pull_request: | |
paths: | |
- 'apps/tokenomics/**' | |
jobs: | |
build: | |
continue-on-error: False | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install modules | |
run: yarn | |
- run: git branch --track main origin/main | |
- name: Run ESLint | |
run: yarn nx lint tokenomics | |
- name: Run Test | |
run: yarn nx test tokenomics | |
scan: | |
name: gitleaks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.17.7' | |
- run: | | |
wget https://github.com/zricethezav/gitleaks/releases/download/v8.10.1/gitleaks_8.10.1_linux_x64.tar.gz && \ | |
tar -xzf gitleaks_8.10.1_linux_x64.tar.gz && \ | |
sudo install gitleaks /usr/bin && \ | |
gitleaks detect -r apps/tokenomics/gitleaks-report.json -s apps/tokenomics -v |