Version Packages #106
This file contains 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: Pre-release tests | |
on: | |
push: | |
branches: | |
- pre-release-testing-branch | |
- changeset-release/main | |
workflow_dispatch: | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
pre_release_checks: | |
name: Pre-release checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-env | |
- name: Install | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Build | |
run: pnpm build | |
- name: lint | |
run: pnpm lint | |
- name: Cache artifacts | |
uses: actions/cache@v4 | |
with: | |
path: | | |
packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/artifacts | |
key: hardhat-network-stack-traces-tests-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/**/*.sol') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/**/test.json') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/stack-traces/**/*.ts') }} | |
- name: test | |
env: | |
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true | |
FORCE_COLOR: 3 | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: pnpm test | |
- name: Check dependency versions | |
run: node scripts/check-dependencies.js | |
test_fork: | |
name: Test Hardhat Network's forking functionality | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/hardhat-core | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-env | |
- name: Install | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Cache network requests | |
uses: actions/cache@v4 | |
with: | |
path: | | |
packages/hardhat-core/test/internal/hardhat-network/provider/.hardhat_node_test_cache | |
key: hardhat-network-forking-tests-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('packages/hardhat-core/test/internal/hardhat-network/provider/node.ts') }} | |
- name: Run tests | |
env: | |
INFURA_URL: ${{ secrets.INFURA_URL }} | |
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }} | |
DO_NOT_SET_THIS_ENV_VAR____IS_HARDHAT_CI: true | |
FORCE_COLOR: 3 | |
NODE_OPTIONS: "--max-old-space-size=4096" | |
run: | | |
pnpm build | |
pnpm test:except-tracing |