Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WORKFLOWS] Update Nixpkgs Inputs & Update Node Dependencies #1390

Merged
merged 77 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
e74a5dc
update inputs, disabling echidna temporarily
hellwolf May 6, 2023
0f15af8
Merge remote-tracking branch 'origin/dev' into update_nix_flake_inputs
hellwolf Jun 11, 2023
a1e1aa1
update ghc versions
hellwolf Jun 11, 2023
872f7cd
Merge branch 'dev' into update_nix_flake_inputs
hellwolf Jul 21, 2023
e3a0a03
limit node versions to 18 & 20
hellwolf Jul 21, 2023
f35cf30
Revert "limit node versions to 18 & 20"
hellwolf Jul 21, 2023
8fc52f0
fix .github/workflows/call.test-spec-haskell.yml
hellwolf Jul 21, 2023
a692d4b
permit insecure nodejs-16.20.1
hellwolf Jul 21, 2023
6410bea
permit insecure nodejs-16.20.1
hellwolf Jul 21, 2023
f9dee21
limit node versions to 18 & 20
hellwolf Jul 21, 2023
2f0ace0
Merge branch 'dev' into update_nix_flake_inputs
hellwolf Jul 22, 2023
cdb2e1f
update nixpkgs and reenable hot-fuzz testing
hellwolf Jul 22, 2023
6eb2016
update nixpkgs and reenable hot-fuzz testing
hellwolf Jul 22, 2023
3f1136a
fix test-hot-fuzz
hellwolf Jul 22, 2023
73f35e5
try to fix hot-fuzz
hellwolf Jul 24, 2023
ead4306
set default solc
hellwolf Jul 24, 2023
32d98cb
remove unused file
hellwolf Jul 24, 2023
6031264
hot fuzz fixing wip
hellwolf Jul 24, 2023
c69fa9d
some slither related fix
hellwolf Jul 24, 2023
8ae94a8
echidna fixes wip
hellwolf Jul 24, 2023
b6d78e6
Merge remote-tracking branch 'origin/dev' into update_nix_flake_inputs
hellwolf Jul 27, 2023
9185520
use registerAppWithKey (#1554)
0xdavinchee Jul 31, 2023
b4ffdf2
Merge remote-tracking branch 'origin/dev' into update_nix_flake_inputs
hellwolf Aug 7, 2023
3708640
Merge remote-tracking branch 'origin/dev' into update_nix_flake_inputs
hellwolf Aug 7, 2023
6974666
add tasks/list-all-linked-libraries.sh
hellwolf Aug 7, 2023
96586f2
wip hotfuzz fix
hellwolf Aug 7, 2023
ab077a7
fixes
hellwolf Aug 7, 2023
1e2c265
Merge remote-tracking branch 'origin/dev' into update_nix_flake_inputs
hellwolf Aug 9, 2023
a4a57f1
use 6 cores by default
hellwolf Aug 9, 2023
b1065cf
Merge remote-tracking branch 'origin/dev' into update_nix_flake_inputs
hellwolf Aug 10, 2023
8a73e28
update flake
hellwolf Aug 10, 2023
4afe8a3
update hardhat
hellwolf Aug 10, 2023
e038048
add a bit more ingredients to devShells.ci-hot-fuzz
hellwolf Aug 10, 2023
56f0e3c
update non-critical dependencies cloc dotenv husky lerna node-jq nodemon
hellwolf Aug 10, 2023
55077a1
updating ethers
hellwolf Aug 10, 2023
e4b4141
adding @nomicfoundation/hardhat-ethers
hellwolf Aug 10, 2023
6f96ac7
revert to ethers 5
hellwolf Aug 10, 2023
ffee4a8
revert some brave changes
hellwolf Aug 10, 2023
4f7d78b
update typechain stack
hellwolf Aug 10, 2023
f432738
update truffle
hellwolf Aug 10, 2023
0fd25cc
update syncpack
hellwolf Aug 10, 2023
150299f
update eslint prettier related stuff
hellwolf Aug 10, 2023
0f6d544
fix linting errors
hellwolf Aug 10, 2023
7b4b2d9
update web3
hellwolf Aug 10, 2023
8eb3bf8
update something
hellwolf Aug 10, 2023
20b6f77
some minor version updates
hellwolf Aug 10, 2023
82d6916
some silly fixes
hellwolf Aug 10, 2023
45f1637
.github/workflows/call.test-local-subgraph.yml .github/workflows/ci.f…
hellwolf Aug 10, 2023
f25a0ab
roll back graphql-request
hellwolf Aug 10, 2023
106d733
fixes
hellwolf Aug 10, 2023
f85b48c
update ethereum-contracts deps
hellwolf Aug 10, 2023
2019fd1
some fixes
hellwolf Aug 10, 2023
961b5ef
better now
hellwolf Aug 10, 2023
5561c18
fixes
hellwolf Aug 10, 2023
5e6390d
some workflow tuning
hellwolf Aug 10, 2023
8e5f033
try node18 for now
hellwolf Aug 10, 2023
2530310
update sdk-redux
hellwolf Aug 10, 2023
6016469
update sdk-redux
hellwolf Aug 10, 2023
50ebab4
cleanup workflows
hellwolf Aug 10, 2023
bfa884e
cleanup workflows
hellwolf Aug 10, 2023
018bf94
cleanup workflows
hellwolf Aug 10, 2023
64f1cd2
more workflow improvements
hellwolf Aug 11, 2023
c7d804c
more workflow improvements
hellwolf Aug 11, 2023
56e8f14
more workflow improvements
hellwolf Aug 11, 2023
4cc2807
fixes
hellwolf Aug 11, 2023
ab97db8
fixes
hellwolf Aug 11, 2023
b4c97a8
fixes
hellwolf Aug 11, 2023
38d2244
fixes
hellwolf Aug 11, 2023
8566066
fixes
hellwolf Aug 11, 2023
b5a1d95
fixes
hellwolf Aug 11, 2023
a124874
fixes
hellwolf Aug 11, 2023
01b9c6f
fixes
hellwolf Aug 11, 2023
96bfe08
fixes
hellwolf Aug 11, 2023
4169d50
Merge branch 'dev' into update_nix_flake_inputs
hellwolf Aug 11, 2023
6427a12
fixes
hellwolf Aug 11, 2023
35db06c
fixes
hellwolf Aug 11, 2023
d4de3d7
fixes
hellwolf Aug 11, 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
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
hellwolf committed Aug 11, 2023
commit 856606664617cc62bc8f34a95c7e0d7baed6bbce
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/call.deploy-hosted-service-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -101,4 +101,4 @@ jobs:
run: ./tasks/deploy-to-hosted-service-network.sh ${{ inputs.release_branch }} ${{ inputs.network }}
working-directory: ${{ env.subgraph-working-directory }}
env:
THE_GRAPH_ACCESS_TOKEN: ${{ secrets.THE_GRAPH_ACCESS_TOKEN }}
THE_GRAPH_ACCESS_TOKEN: ${{ secrets.THE_GRAPH_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/call.test-automation-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/call.test-hot-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

defaults:
run:
shell: nix develop .#ci-hot-fuzz -c bash {0}
shell: nix develop .#ci-hot-fuzz -c bash -xe {0}

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/call.test-local-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -96,4 +96,4 @@ jobs:

- name: "Run subgraph integration test suite"
run: yarn test --network localhost
working-directory: ${{ env.subgraph-working-directory }}
working-directory: ${{ env.subgraph-working-directory }}
6 changes: 3 additions & 3 deletions .github/workflows/call.test-sdk-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

- name: "Build and deploy local subgraph"
run: |
yarn build-and-deploy-local
yarn build-and-deploy-local
# artificial slow down to give the subgraph time to sync
sleep 30
working-directory: ${{ env.subgraph-working-directory }}
Expand Down Expand Up @@ -103,4 +103,4 @@ jobs:
with:
name: sdk-core-coverage
path: |
packages/sdk-core/coverage/
packages/sdk-core/coverage/
2 changes: 1 addition & 1 deletion .github/workflows/call.test-solidity-semantic-money.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
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 @@ -20,7 +20,7 @@ jobs:

defaults:
run:
shell: nix develop .#${{ matrix.dev-shell-type }} -c bash {0}
shell: nix develop .#${{ matrix.dev-shell-type }} -c bash -xe {0}

steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand All @@ -52,7 +52,7 @@ jobs:
run: |
./tasks/startHardhatNode.sh start
working-directory: ${{ env.sdk-core-working-directory }}

- name: "Build SDK-Core"
# build sdk-core because of auto linking to dependency
run: yarn build
Expand Down Expand Up @@ -92,4 +92,4 @@ jobs:

- name: "Stop Hardhat node"
run: ./tasks/startHardhatNode.sh stop
working-directory: ${{ env.sdk-core-working-directory }}
working-directory: ${{ env.sdk-core-working-directory }}
2 changes: 1 addition & 1 deletion .github/workflows/cd.feature.create-pr-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

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

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

Expand Down
88 changes: 13 additions & 75 deletions .github/workflows/ci.canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -113,39 +113,11 @@ jobs:
name: Build and Test Automation Contracts (Canary Branch)

coverage-ethereum-contracts:
name: Run coverage test of ethereum-contracts of dev branch

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3

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

- name: Install, run coverage test
run: |
yarn install --frozen-lockfile
yarn build
echo "FOUNDRY_PROFILE=ci" >> $GITHUB_ENV
echo "FOUNDRY_SOLC_VERSION=$SOLC" >> $GITHUB_ENV
yarn workspace @superfluid-finance/ethereum-contracts test-coverage

- name: Clean up and merge coverage artifacts
run: ./tasks/coverage-cleanup.sh
working-directory: ./packages/ethereum-contracts

- name: Create coverage artifact
uses: actions/upload-artifact@v3
with:
name: ethereum-contracts-coverage
path: |
packages/ethereum-contracts/coverage/
name: Coverage test ethereum-contracts (Canary Branch)
uses: ./.github/workflows/call.test-ethereum-contracts.yml
if: needs.check.outputs.build_ethereum_contracts
with:
run-coverage-tests: true

coverage-sdk-core:
uses: ./.github/workflows/call.test-sdk-core.yml
Expand All @@ -155,44 +127,10 @@ jobs:
subgraph-endpoint: http://localhost:8000/subgraphs/name/superfluid-test
run-coverage-tests: true

publish-coverage-reports:
name: Publish coverage reports
needs: [coverage-ethereum-contracts, coverage-sdk-core]

runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

- name: Download ethereum-contracts-coverage
uses: actions/download-artifact@v3
with:
name: ethereum-contracts-coverage
path: packages/ethereum-contracts/coverage
- name: Upload ethereum-contracts-coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: packages/ethereum-contracts/coverage/lcov.info
name: ethereum-contracts-coverage
flags: ethereum-contracts
fail_ci_if_error: true

- name: Download sdk-core-coverage
uses: actions/download-artifact@v3
with:
name: sdk-core-coverage
path: packages/sdk-core/coverage
- name: Upload sdk-core-coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: packages/sdk-core/coverage/lcov.info
name: sdk-core-coverage
flags: sdk-core
fail_ci_if_error: true
upload-coverage-reports:
name: Upload Coverage Reports (Feature Branch)
uses: ./.github/workflows/call.upload-coverage-reports.yml
needs: [test-ethereum-contracts, coverage-ethereum-contracts]

all-packages-tested:
name: All packages tested (Dev Branch)
Expand Down Expand Up @@ -239,7 +177,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -283,7 +221,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -346,7 +284,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/handler.deploy-to-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -65,4 +65,4 @@ jobs:
aws_access_key_id: ${{ secrets.SITE_DEPLOYER_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.SITE_DEPLOYER_AWS_SECRET_ACCESS_KEY }}
s3_uri: ${{ format('{0}{1}-contract-addrs@{2}', secrets.SITE_DEPLOYER_AWS_S3_DOCS_URI, github.event.inputs.network, github.run_id) }}
cloudfront_distribution_id: E3JEO5R14CT8IH
cloudfront_distribution_id: E3JEO5R14CT8IH
2 changes: 1 addition & 1 deletion .github/workflows/handler.list-super-token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/handler.publish-release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
tasks/npm-publish.sh packages/sdk-core/ latest

PUBLISHED_VERSION=$(jq -r .version packages/sdk-core/package.json)

echo "PUBLISHED_VERSION=$PUBLISHED_VERSION" >> "$GITHUB_OUTPUT"

# Build documentation with redirect from root
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
tasks/npm-publish.sh packages/sdk-redux/ latest

PUBLISHED_VERSION=$(jq -r .version packages/sdk-redux/package.json)

echo "PUBLISHED_VERSION=$PUBLISHED_VERSION" >> "$GITHUB_OUTPUT"

# Build documentation with redirect from root
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/handler.verify-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

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

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
"publish": {
"npmClient": "npm"
Expand Down