Run biome
as part of lint scripts (#3843)
#1980
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: VM | |
on: | |
push: | |
branches: [master] | |
tags: ['*'] | |
defaults: | |
run: | |
working-directory: packages/vm | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test-vm-state: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/cache/restore@v4 | |
id: dep-cache | |
with: | |
path: ${{github.workspace}} | |
key: npm-${{ hashFiles('package-lock.json') }} | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies (if not restored from cache) | |
if: steps.dep-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
working-directory: ${{ github.workspace }} | |
- run: npm run test:state:selectedForks | |
test-vm-blockchain: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/cache/restore@v4 | |
id: dep-cache | |
with: | |
path: ${{github.workspace}} | |
key: npm-${{ hashFiles('package-lock.json') }} | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies (if not restored from cache) | |
if: steps.dep-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
working-directory: ${{ github.workspace }} | |
- run: npm run test:blockchain |