fix(deps): update dependency @openzeppelin/contracts-4.5.0 to v5 #14925
Workflow file for this run
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: Typescript Packages | |
on: | |
pull_request: | |
paths: | |
- 'packages/**' | |
push: | |
paths: | |
- 'packages/**' | |
jobs: | |
cancel-outdated: | |
name: Cancel Outdated Jobs | |
runs-on: ubuntu-latest | |
steps: | |
- id: skip_check | |
if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) != github.ref && !contains(github.event.head_commit.message, '[no_skip]') }} | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
cancel_others: 'true' | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
submodules: 'recursive' | |
- name: Setup NodeJS | |
uses: ./.github/actions/setup-nodejs | |
# Foundry is required for formatting | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run tests # Run tests of all packages | |
run: npx lerna exec npm run ci:lint --parallel | |
test: | |
runs-on: ubuntu-latest | |
env: | |
SDK_RPC_URL: ${{ secrets.SDK_RPC_URL }} | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
submodules: 'recursive' | |
- name: Setup NodeJS | |
uses: ./.github/actions/setup-nodejs | |
# Foundry is required for build | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Verify Changed files | |
uses: tj-actions/[email protected] | |
id: verify-yarn-lock | |
with: | |
files: | | |
yarn.lock | |
- name: Add Label | |
if: ${{ steps.verify-yarn-lock.outputs.files_changed == 'true' && github.event_name != 'push' }} | |
uses: ./.github/actions/add-label | |
with: | |
label: 'needs-yarn-install' | |
- name: Remove Label | |
if: ${{ steps.verify-yarn-lock.outputs.files_changed != 'true' && github.event_name != 'push' }} | |
uses: ./.github/actions/remove-label | |
with: | |
label: 'needs-yarn-install' | |
- name: List all changed files tracked and untracked files | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
run: | | |
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}" | |
- name: Run tests # Run tests of all packages | |
run: yarn test:coverage | |
- name: LCOV move | |
run: mv lcov/lcov.info lcov.info | |
- name: Send Coverage (Codecov) | |
uses: Wandalen/[email protected] | |
with: | |
action: codecov/codecov-action@v3 | |
with: | | |
token: ${{ secrets.CODECOV }} | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) | |
flags: packages | |
files: lcov.info | |
attempt_limit: 5 | |
attempt_delay: 30000 | |
- name: Run build # Run tests of all packages | |
run: npx lerna exec npm run build --parallel || true # only for codecov | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV }} | |
GH_COMMIT_SHA: ${{ github.event.pull_request.head.sha }} |