-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.18 KB
/
tokenomics.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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