build(deps-dev): bump ethers from 5.7.0 to 6.15.0 in /packages/network-contracts #3534
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: | |
| - '*' | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint-and-unit-test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Cache node_modules | |
| id: cache-node-modules | |
| uses: actions/cache@v4 | |
| with: | |
| key: cache-node-modules-${{ hashFiles('package-lock.json') }} | |
| path: | | |
| node_modules | |
| packages/*/node_modules | |
| - name: Install dependencies | |
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
| run: npm ci --no-audit | |
| - name: (Re-)install packages that have platform-specific implementations | |
| run: npm i @nomicfoundation/solidity-analyzer solidity-comments | |
| - name: Build | |
| run: npm run build | |
| - name: Lint | |
| run: npm run lint | |
| - name: Unit tests | |
| run: npm run test | |
| fastchain-docker-image: | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-latest | |
| needs: | |
| - lint-and-unit-test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Cache node_modules | |
| id: cache-node-modules | |
| uses: actions/cache@v4 | |
| with: | |
| key: cache-node-modules-${{ hashFiles('package-lock.json') }} | |
| path: | | |
| node_modules | |
| packages/*/node_modules | |
| - name: Install dependencies | |
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
| run: npm ci --no-audit | |
| - name: Build all packages | |
| run: npm run build | |
| - name: Build fastchain image | |
| run: npm run docker:buildLocalArch -w packages/dev-chain-fast | |
| - name: Build subgraph image | |
| run: npm run docker:buildLocalArch -w packages/network-subgraphs | |
| - name: Start docker stack | |
| uses: streamr-dev/[email protected] | |
| with: | |
| services-to-start: 'deploy-network-subgraphs-fastchain' | |
| - name: Smoke Test (with locally built images) | |
| env: | |
| TEST_TIMEOUT: '600000' | |
| DEBUG: "*,-mocha:*" | |
| run: npm run smoke-test -w packages/network-subgraphs | |
| # - name: Build & Push | |
| # uses: docker/[email protected] | |
| # with: | |
| # context: . | |
| # file: ./packages/dev-chain-fast/Dockerfile | |
| # platforms: linux/amd64 | |
| # push: true | |
| # load: false | |
| # build-args: | | |
| # NODE_ENV=production | |
| # tags: streamr/broker-node:dev | |
| # labels: | | |
| # org.opencontainers.image.source= | |
| # uses: ./.github/workflows/docker-build.yml | |
| # with: | |
| # docker_file: ./packages/dev-chain-fast/Dockerfile | |
| # image_name: streamr/broker-node | |
| # test_services_to_start: cassandra init-keyspace dev-chain-fast deploy-network-subgraphs-fastchain broker-node-storage-1 | |
| # build_platforms: linux/amd64 | |
| # test_script: bash ./.github/healthcheck.sh http://localhost:8891/info streamr-dev-broker-node-storage-1 |