Add openrpc generation tests in ci #2
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: (open-rpc) Test OpenRPC spec | |
on: | |
pull_request: | |
jobs: | |
deploy-SC-example: | |
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: "18" | |
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: Generate OpenRPC spec | |
run: | | |
npm run generate | |
- name: Test OpenRPC spec | |
run: | | |
npm run test:openrpc |