fix(examples): restore ecosystem switching and refresh adapter docs #355
Workflow file for this run
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
| # CI workflow for OpenZeppelin UI | |
| # ================================ | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Prepare pre-requisites | |
| uses: ./.github/actions/prepare | |
| with: | |
| token: ${{ github.token }} | |
| - name: Build all packages | |
| run: pnpm build | |
| env: | |
| NODE_OPTIONS: "--max-old-space-size=8192" | |
| - name: Test ES module imports | |
| run: | | |
| cat > test-es-modules.mjs << 'EOF' | |
| import { logger } from './packages/utils/dist/index.mjs'; | |
| import { isEvmNetworkConfig } from './packages/types/dist/index.mjs'; | |
| if (typeof logger === 'object' && typeof isEvmNetworkConfig === 'function') { | |
| console.log('✅ ES modules working correctly'); | |
| process.exit(0); | |
| } else { | |
| console.error('❌ ES module imports failed'); | |
| process.exit(1); | |
| } | |
| EOF | |
| node test-es-modules.mjs | |
| rm test-es-modules.mjs | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Prepare pre-requisites | |
| uses: ./.github/actions/prepare | |
| with: | |
| token: ${{ github.token }} | |
| - name: Build all packages | |
| run: pnpm build | |
| - name: Test | |
| run: pnpm test | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Prepare pre-requisites | |
| uses: ./.github/actions/prepare | |
| with: | |
| token: ${{ github.token }} | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Format check | |
| run: pnpm format:check | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Prepare pre-requisites | |
| uses: ./.github/actions/prepare | |
| with: | |
| token: ${{ github.token }} | |
| - name: Build all packages | |
| run: pnpm build | |
| - name: Typecheck | |
| run: pnpm typecheck |