Skip to content

Add openrpc generation tests in ci #5

Add openrpc generation tests in ci

Add openrpc generation tests in ci #5

Workflow file for this run

name: (open-rpc) Test OpenRPC spec
on:
pull_request:
jobs:
test-openrpc-spec:
defaults:
run:
working-directory: ./packages/massa-web3/
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: ./packages/massa-web3/
- name: Install dependencies
run: |
npm ci
working-directory: ./
- name: Build workspace
run: |
npm run build
working-directory: ./
- name: Install dependencies
run: |
pwd
npm ci
- name: Generate OpenRPC spec
run: |
npm run generate
- name: Test OpenRPC spec
run: |
npm run test:openrpc