Skip to content

Bump @typescript-eslint/parser from 8.6.0 to 8.13.0 #2287

Bump @typescript-eslint/parser from 8.6.0 to 8.13.0

Bump @typescript-eslint/parser from 8.6.0 to 8.13.0 #2287

Workflow file for this run

name: Build, test and publish
on:
push:
branches: [main, develop]
tags: '*'
pull_request:
# schedule:
# - cron: "33 3 * * *"
jobs:
build_hardhat:
name: Build and test (Hardhat)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: NPM install globals
run: npm install -g hardhat-shorthand solhint
- name: NPM install
run: npm install
- name: Compile contracts
run: npm run build
- name: Run all tests
run: npm run test
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
artifacts
- name: Run linter (prettier check and solhint)
run: npm run lint
build_foundry:
name: Build contracts (Foundry - default profile with optimizer)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Compile contracts
run: forge build contracts/
- name: Extract contract sizes report
run: forge build contracts/ --sizes | egrep "|([^|]+)|([^|]*)|([^|]*)|" > contract_sizes.log
- name: Archive size log
uses: actions/upload-artifact@v4
with:
name: contract_sizes
path: |
contract_sizes.log
test_foundry:
# name: Run tests (Foundry - ci profile)
name: Run tests (Foundry)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run tests
# trigger fast tests for regular pull requests
if: |
github.event_name != 'pull_request' ||
! contains(github.event.pull_request.labels.*.name, 'run_all_tests')
run: forge test -vv
publish:
name: Publish npm package to npmjs
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs: [build_hardhat, build_foundry, test_foundry]
# only run if not on main and hardhat **and** founddry are successful and not dependabot
if: |
github.ref != 'refs/heads/main' &&
contains(join(needs.*.result, ','), 'success') &&
github.actor != 'dependabot[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: artifacts
path: artifacts
- name: Setup node environment
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
# latest npm required for provenance
- run: npm install -g npm
- run: npm ci
- name: Set build version identifier
# version is set to current patch + 1 and a build identifier (revision plus seconds to avoid duplicates) is added
run: npm version "`node -e \"console.log(require('./package.json').version);\"`-`git rev-parse --short HEAD`-`date +%s | tail -c4`" --no-git-tag-version
- run: npm publish --tag next --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
deployment_test:
name: Execute test deployment on local chain
runs-on: ubuntu-latest
permissions:
contents: read
# id-token: write
needs: [build_hardhat, build_foundry]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup node environment
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
npm install -g hardhat-shorthand
npm install
- name: Run deployment script for gif and fire components
run: |
hh run scripts/deploy_all.ts