Skip to content

fix chain id issue

fix chain id issue #8

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
paths-ignore:
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'docs/**'
- '*.md'
- 'assets/**'
pull_request:
branches: [ master, main ]
paths-ignore:
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'docs/**'
- '*.md'
- 'assets/**'
jobs:
backend:
name: Backend (Hardhat)
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Compile contracts
run: npx hardhat compile
- name: Run tests
run: npx hardhat test
frontend:
name: Frontend (Next.js)
runs-on: ubuntu-latest
needs: backend
defaults:
run:
working-directory: client
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: client/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test -- --runInBand
- name: Lint
run: npm run lint
- name: Build
run: npm run build