Skip to content

Bump vite from 4.5.0 to 5.0.12 #15

Bump vite from 4.5.0 to 5.0.12

Bump vite from 4.5.0 to 5.0.12 #15

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: setup caching
uses: actions/cache@v3
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: lint code
run: pnpm lint
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: build packages
run: pnpm build
- name: run tests
run: pnpm test:coverage
env:
VITE_ANVIL_FORK_URL: ${{ vars.VITE_ANVIL_FORK_URL }}
VITE_ANVIL_BLOCK_NUMBER: ${{ vars.VITE_ANVIL_BLOCK_NUMBER }}
VITE_ANVIL_SAFE_ADDRESS: ${{ vars.VITE_SAFE_ADDRESS }}
# run coverage only on ubuntu
- name: Coveralls
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./coverage/lcov.info