-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.08 KB
/
all.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
name: Build
on:
push:
branches: ['*']
jobs:
build_test_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com
scope: '@oriumnetwork'
- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install Dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GHB_TOKEN }}
- name: Lint
run: npm run lint
# - name: Run Foundry tests
# run: forge test --verbosity -vvv
- name: Compile Smart Contracts
run: npm run compile
env:
POLYGON_PROVIDER_URL: ${{ secrets.POLYGON_PROVIDER_URL }}
MUMBAI_PROVIDER_URL: ${{ secrets.MUMBAI_PROVIDER_URL }}
- name: Test Coverage
run: npm run coverage
env:
POLYGON_PROVIDER_URL: ${{ secrets.POLYGON_PROVIDER_URL }}
MUMBAI_PROVIDER_URL: ${{ secrets.MUMBAI_PROVIDER_URL }}