Skip to content

Commit

Permalink
Merge wells-main to master (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalecks committed Jun 28, 2023
2 parents 4d8287e + 1c9267f commit 7c2f2d8
Show file tree
Hide file tree
Showing 390 changed files with 99,997 additions and 5,726 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.dex-ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: DEX-UI

on:
pull_request:
types: [opened, synchronize]
paths:
- "projects/dex-ui/**"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Node Install
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Build SDKs
run: yarn build
- name: Confirm DEX-UI Build
run: yarn workspace dex-ui build
8 changes: 4 additions & 4 deletions .github/workflows/ci.protocol.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Continuous Integration - Protocol
name: Protocol

on:
pull_request:
types: [opened, synchronize]
paths:
- 'protocol/**'
- "protocol/**"

jobs:
test:
Expand All @@ -14,12 +14,12 @@ jobs:
- name: Protocol Tests
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/ci.sdk-core.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: SDK Core

on:
pull_request:
types: [opened, synchronize]
paths:
- 'projects/sdk-core/**'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SDK Core Tests
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Launch Anvil
run: anvil --fork-url $ANVIL_FORK_URL --chain-id 1337 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
- name: Build All
run: yarn build
- name: Test SDK Core
run: yarn sdk-core:test
48 changes: 48 additions & 0 deletions .github/workflows/ci.sdk-wells.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Wells SDK

on:
pull_request:
types: [opened, synchronize]
paths:
- "projects/sdk-wells/**"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SDK Wells Tests
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Generate Typedefs
run: yarn sdk:generate
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Launch Anvil
run: anvil --fork-url $ANVIL_FORK_URL --chain-id 1337 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
- name: Build All
run: yarn build
- name: Run Tests
run: yarn sdk-wells:test
working-directory: projects/sdk-wells
12 changes: 6 additions & 6 deletions .github/workflows/ci.sdk.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Continuous Integration - SDK
name: SDK

on:
pull_request:
types: [opened, synchronize]
paths:
- 'projects/sdk/**'
- "projects/sdk/**"

jobs:
test:
Expand All @@ -14,18 +14,16 @@ jobs:
- name: SDK Tests
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Generate Typedefs
run: yarn sdk:generate
- name: Install rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -42,5 +40,7 @@ jobs:
run: anvil --fork-url $ANVIL_FORK_URL --chain-id 1337 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
- name: Build All
run: yarn build
- run: yarn sdk:test
working-directory: projects/sdk
66 changes: 33 additions & 33 deletions .github/workflows/ci.subgraph-bean.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Continuous Integration - Subgraph Bean
name: Subgraph Bean

on:
pull_request:
types: [opened, synchronize]
paths:
- 'projects/subgraph-bean/**'
- "projects/subgraph-bean/**"

jobs:
compile:
runs-on: ubuntu-latest
name: Compile
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable

# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-bean
- name: Check for uncommitted changes
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Evaluate if there are changes
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes - execute 'yarn codegen' locally and commit the generated files!"
# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-bean
- name: Check for uncommitted changes
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Evaluate if there are changes
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes - execute 'yarn codegen' locally and commit the generated files!"

- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-bean
- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-bean
# TODO: add matchstick test suite
#- name: Run Tests
# run: yarn test
Expand Down
66 changes: 33 additions & 33 deletions .github/workflows/ci.subgraph-beanstalk.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Continuous Integration - Subgraph Beanstalk
name: Subgraph Beanstalk

on:
pull_request:
types: [opened, synchronize]
paths:
- 'projects/subgraph-beanstalk/**'
- "projects/subgraph-beanstalk/**"

jobs:
compile:
runs-on: ubuntu-latest
name: Compile
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Cache Node Modules
id: node-modules-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable

# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-beanstalk
- name: Check for uncommitted changes
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Evaluate if there are changes
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes - execute 'yarn codegen' locally and commit the generated files!"
# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
- name: Generate Subgraph Code
run: yarn codegen
working-directory: projects/subgraph-beanstalk
- name: Check for uncommitted changes
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Evaluate if there are changes
if: steps.check-changes.outputs.outcome == failure()
run: echo "There are uncommitted changes - execute 'yarn codegen' locally and commit the generated files!"

- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-beanstalk
- name: Build Subgraph
run: yarn build
working-directory: projects/subgraph-beanstalk
# TODO: add matchstick test suite
#- name: Run Tests
# run: yarn test
Expand Down
Loading

0 comments on commit 7c2f2d8

Please sign in to comment.