Skip to content

Commit

Permalink
Add GitHub Actions workflow for testing OpenRPC spec
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-senechal committed May 30, 2024
1 parent 3bb2849 commit b7731fd
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/openrpc-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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: Install OpenRPC generation dependencies
run: |
npm ci
- name: Generate OpenRPC spec
run: |
npm run generate
- name: Test OpenRPC spec
run: |
npm run test

0 comments on commit b7731fd

Please sign in to comment.