Skip to content

feat: contract code validation #3783

feat: contract code validation

feat: contract code validation #3783

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm run prettier:check
- run: npm run test
- run: npm run tsc
e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Start regtest
env:
COMPOSE_PROFILES: ci
run: |
git submodule init
git submodule update
chmod -R 777 regtest
cd regtest
./start.sh
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npm run playwright:install
- name: Run Playwright tests
env:
CI: true
run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30