Skip to content
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b8031df
use fuji as canary testnet
d10r Apr 24, 2023
88ed01b
nix flake: make solc available through $SOLC_PATH env
hellwolf Apr 24, 2023
b404dbe
fix mkShell
hellwolf Apr 24, 2023
81c2821
add SOLC_PATH override to hardhat config
d10r Apr 24, 2023
70ba30c
canary workflow: use nix
d10r Apr 24, 2023
4c7791e
added shellcheck to default nix env
d10r Apr 24, 2023
42058fb
removed duplicated step
d10r Apr 24, 2023
7a631c1
more nix
d10r Apr 24, 2023
11d76ce
mooore nix
d10r Apr 24, 2023
b622d18
Nix: freedom from dependency tyranny!
d10r Apr 24, 2023
2cfc96d
Nix: empowering user choice in configuration!
d10r Apr 24, 2023
fc14421
Nix: decentralized management, minimal interference!
d10r Apr 24, 2023
f9c925f
Nix: your self-reliant solution to build chaos!
d10r Apr 24, 2023
b3e24d7
Nix: taking control of your system, your way!
d10r Apr 24, 2023
470d2ed
Nix: embrace reproducibility, conquer build conflicts!
d10r Apr 24, 2023
12f61e3
Nix: liberating developers from dependency nightmares!
d10r Apr 24, 2023
b1f91e6
this is ugly
d10r Apr 24, 2023
8b625f5
lets check this again
d10r Apr 24, 2023
cdd09ee
Nix: champion of customizability and flexibility!
d10r Apr 24, 2023
022f4b7
...
d10r Apr 24, 2023
6975887
are we there?
d10r Apr 24, 2023
82889ce
how about this?
d10r Apr 24, 2023
f9870eb
fix order
d10r Apr 24, 2023
70180bc
was it the intention to deploy all subgraphs?
d10r Apr 24, 2023
8f0da35
even more Nix
d10r Apr 25, 2023
80de081
Nix for ci feature workflow - do we still need multi-node tests?
d10r Apr 25, 2023
7cb59ba
let truffle use native solc, update actions cache workflow
d10r Apr 25, 2023
54c7a60
echo for debugging
0xdavinchee Apr 25, 2023
c3bed86
Merge branch 'canary_fuji' of github.com:superfluid-finance/protocol-…
0xdavinchee Apr 25, 2023
5872a8e
got no perission to write /usr/bin/
d10r Apr 25, 2023
af95e4d
make foundry profile.ci offline mode true
hellwolf Apr 24, 2023
e02e2d7
using latest foundry snapshot
hellwolf Apr 25, 2023
8c9eab5
truffle isn't ready to use the native compiler
d10r Apr 25, 2023
6cefa15
foundry: use native compiler
d10r Apr 25, 2023
7a488f0
use Nix provided shellcheck instead of allowing implicit downloads
d10r Apr 25, 2023
1846461
so, no access to the env of the shell in the workflow env section
d10r Apr 25, 2023
331f9c5
use native solc for foundry
d10r Apr 25, 2023
29462a6
use Nix wherever contracts are built
d10r Apr 25, 2023
f092356
added jq to flake, updated CONTRIBUTING.md
d10r Apr 25, 2023
6c4fd2f
be less verbose
d10r Apr 25, 2023
3b2df84
undo merging of steps
d10r Apr 25, 2023
0534a4d
update graph dependency to include sepolia support
d10r Apr 25, 2023
bce7609
make shellcheck mandatory for CI
hellwolf Apr 26, 2023
d9bb8ab
typo
hellwolf Apr 26, 2023
9ad7a2f
.shellcheckrc
hellwolf Apr 26, 2023
d1afc72
added ci-nodeXX devShells support
hellwolf Apr 26, 2023
fbfaf75
fix typo
hellwolf Apr 26, 2023
3d9048d
fix typo
hellwolf Apr 26, 2023
12ceeb4
remove incorrect caching usage
hellwolf Apr 26, 2023
8004ee9
use ndoejs specific yarn
hellwolf Apr 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
25 changes: 13 additions & 12 deletions .github/workflows/call.test-automation-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,37 @@ jobs:
name: Test Automation Contracts

runs-on: ubuntu-latest
# currently not supported
# strategy:
# matrix:
# node-version: [ 16.x, 18.x ]

strategy:
matrix:
node-version: [ 16.x, 18.x ]
defaults:
run:
shell: nix develop -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
2 changes: 1 addition & 1 deletion .github/workflows/call.test-spec-haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
path: ~/.cabal/store
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
88 changes: 45 additions & 43 deletions .github/workflows/ci.canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,24 @@ jobs:
name: Build and test essential packages of dev branch

runs-on: ubuntu-latest
# currently not supported
# strategy:
# matrix:
# node-version: [16.x, 18.x]

strategy:
matrix:
node-version: [16.x, 18.x]
defaults:
run:
shell: nix develop -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
with:
node-version: 18.x
cache: "yarn"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- uses: cachix/install-nix-action@v19
with:
version: nightly
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- 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 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