Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into semantic-money
Browse files Browse the repository at this point in the history
  • Loading branch information
hellwolf committed Apr 26, 2023
2 parents 69ebad0 + d738830 commit 10798a0
Show file tree
Hide file tree
Showing 49 changed files with 1,158 additions and 1,138 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/call.check-query-schema-against-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
env:
sdk-core-working-directory: ./packages/sdk-core

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies"
run: yarn install --frozen-lockfile
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/call.deploy-hosted-service-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ jobs:
env:
subgraph-working-directory: ./packages/subgraph

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: "Install node"
uses: "actions/setup-node@v3"
- uses: cachix/install-nix-action@v19
with:
node-version: "16"
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies"
run: yarn install --frozen-lockfile
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/call.test-automation-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@ jobs:

strategy:
matrix:
node-version: [ 16.x, 18.x ]
node-version: [ 16, 18 ]

defaults:
run:
shell: nix develop .#ci-node${{ matrix.node-version }} -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install, lint and build
run: |
yarn install --frozen-lockfile
yarn lint
yarn build
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Test automation-contracts-scheduler
run: |
echo "FOUNDRY_PROFILE=ci" >> $GITHUB_ENV
echo "FOUNDRY_SOLC_VERSION=$SOLC_PATH" >> $GITHUB_ENV
yarn workspace scheduler test
- name: Test automation-contracts-autowrap
run: |
echo "FOUNDRY_PROFILE=ci" >> $GITHUB_ENV
echo "FOUNDRY_SOLC_VERSION=$SOLC_PATH" >> $GITHUB_ENV
yarn workspace autowrap test
22 changes: 13 additions & 9 deletions .github/workflows/call.test-local-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ jobs:
subgraph-unit-tests:
name: Run subgraph unit tests
runs-on: ubuntu-latest


defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies"
run: yarn install --frozen-lockfile
Expand All @@ -37,14 +39,16 @@ jobs:
subgraph-working-directory: ./packages/subgraph
sdk-core-working-directory: ./packages/sdk-core

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies"
run: yarn install --frozen-lockfile
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/call.test-sdk-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ jobs:
subgraph-working-directory: ./packages/subgraph
sdk-core-working-directory: ./packages/sdk-core

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies"
run: yarn install --frozen-lockfile
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/call.test-spec-haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: cache
uses: actions/cache@v2
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store
restore-keys: ${{ runner.os }}-${{ matrix.compiler }}-

- name: Create devShell
run: |
echo 'nix develop .#${{ matrix.devShell }} -c bash $@' > devShell.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ jobs:
contracts-working-directory: ./packages/ethereum-contracts
sdk-core-working-directory: ./packages/sdk-core

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Install dependencies"
run: yarn install --frozen-lockfile
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/cd.feature.create-pr-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ jobs:

runs-on: ubuntu-latest

defaults:
run:
shell: nix develop -c bash {0}

if: ${{ !github.event.pull_request.draft }}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Show context
env:
Expand Down
86 changes: 44 additions & 42 deletions .github/workflows/ci.canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [16, 18]

defaults:
run:
shell: nix develop .#ci-node${{ matrix.node-version }} -c bash {0}

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: cachix/install-nix-action@v19
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Show contexts
env:
HEAD_REF: ${{ github.head_ref }}
Expand All @@ -37,22 +45,14 @@ jobs:
echo github.ref: "$GITHUB_REF"
echo github.head_ref: "$HEAD_REF"
echo github.base_ref: ${{ github.base_ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install, lint, build, and test
run: |
yarn install --frozen-lockfile
yarn lint
yarn build
echo "FOUNDRY_PROFILE=ci" >> $GITHUB_ENV
echo "FOUNDRY_SOLC_VERSION=$SOLC_PATH" >> $GITHUB_ENV
yarn test
env:
POLYGON_MAINNET_PROVIDER_URL: ${{ secrets.POLYGON_MAINNET_PROVIDER_URL }}
Expand Down Expand Up @@ -96,8 +96,7 @@ jobs:
if: needs.check.outputs.build_subgraph
with:
release_branch: dev
# empty string network deploys to all networks
network: ""
network: "all"
secrets:
THE_GRAPH_ACCESS_TOKEN: ${{ secrets.THE_GRAPH_ACCESS_TOKEN }}

Expand All @@ -114,24 +113,23 @@ jobs:

runs-on: ubuntu-latest

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run coverage test
- name: Install, run coverage test
run: |
yarn install --frozen-lockfile
yarn build
echo "FOUNDRY_PROFILE=ci" >> $GITHUB_ENV
echo "FOUNDRY_SOLC_VERSION=$SOLC_PATH" >> $GITHUB_ENV
yarn workspace @superfluid-finance/ethereum-contracts test-coverage
- name: Install lcov
Expand All @@ -156,7 +154,7 @@ jobs:
coverage-sdk-core:
uses: ./.github/workflows/call.test-sdk-core.yml
name: Build and Test SDK-Core Coverage (Canary Branch)
with:
with:
subgraph-release: local
subgraph-endpoint: http://localhost:8000/subgraphs/name/superfluid-test
run-coverage-tests: true
Expand Down Expand Up @@ -237,15 +235,16 @@ jobs:

runs-on: ubuntu-latest

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
registry-url: https://registry.npmjs.org/
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down Expand Up @@ -279,6 +278,10 @@ jobs:

runs-on: ubuntu-latest

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

Expand All @@ -287,12 +290,9 @@ jobs:
repository: superfluid-finance/build-scripts
path: build-scripts

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
registry-url: https://registry.npmjs.org/
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
cloudfront_distribution_id: E3JEO5R14CT8IH

upgrade-contracts:
name: Upgrade ethereum-contracts on goerli testnet (protocol release version "test")
name: Upgrade ethereum-contracts on canary testnet (protocol release version "test")

needs: [all-packages-tested]

Expand All @@ -339,16 +339,18 @@ jobs:
strategy:
fail-fast: false
matrix:
network: [goerli]
network: [avalanche-fuji]

defaults:
run:
shell: nix develop -c bash {0}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- uses: cachix/install-nix-action@v19
with:
node-version: 18.x
cache: "yarn"
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: |
Expand All @@ -361,5 +363,5 @@ jobs:
npx truffle exec --network ${{ matrix.network }} ops-scripts/deploy-test-environment.js
env:
RELEASE_VERSION: master
ETH_GOERLI_MNEMONIC: ${{ secrets.BUILD_AGENT_MNEMONIC }}
ETH_GOERLI_PROVIDER_URL: ${{ secrets.ETH_GOERLI_PROVIDER_URL }}
AVALANCHE_FUJI_MNEMONIC: ${{ secrets.BUILD_AGENT_MNEMONIC }}
AVALANCHE_FUJI_PROVIDER_URL: ${{ secrets.AVALANCHE_FUJI_PROVIDER_URL }}
Loading

0 comments on commit 10798a0

Please sign in to comment.