Skip to content

Commit 77247be

Browse files
committed
feat: Add atoken-style pool template
1 parent a199d3e commit 77247be

File tree

3 files changed

+1211
-0
lines changed

3 files changed

+1211
-0
lines changed

.github/workflows/template-a.yaml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: template-a
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "tests/**/*.py"
7+
- "contracts/pool-templates/a/**.vy"
8+
push:
9+
paths:
10+
- "tests/**/*.py"
11+
- "contracts/pool-templates/a/**.vy"
12+
13+
env:
14+
pool: "template-a"
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
NODE_OPTIONS: --max_old_space_size=4096
17+
18+
jobs:
19+
test:
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
target: [pools, zaps]
26+
type: [unitary, integration]
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: Cache Compiler Installations
32+
uses: actions/cache@v2
33+
with:
34+
path: |
35+
~/.solcx
36+
~/.vvm
37+
key: compiler-cache
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v1
41+
42+
- name: Install Ganache
43+
run: npm install
44+
45+
- name: Setup Python 3.8
46+
uses: actions/setup-python@v2
47+
with:
48+
python-version: 3.8
49+
50+
- name: Install Requirements
51+
run: |
52+
pip install wheel
53+
pip install -r requirements.txt
54+
55+
- name: Run Tests
56+
run: brownie test tests/${{ matrix.target }} --pool ${{ env.pool }} --${{ matrix.type }}

0 commit comments

Comments
 (0)