-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Konstantina Blazhukova <[email protected]>
- Loading branch information
1 parent
795055f
commit 1505dde
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
repository: 'ethereum/execution-apis' | ||
ref: 'main' | ||
path: 'execution-apis' | ||
|
||
- name: Use Node.js TLS 18 | ||
|
@@ -32,26 +31,19 @@ jobs: | |
- name: Build project | ||
run: npm run build | ||
working-directory: ./execution-apis | ||
|
||
- name: Copy openrpc.json to current repo | ||
run: cp ./execution-apis/openrpc.json ${{ github.workspace }} | ||
|
||
- name: Commit openrpc.json | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add openrpc.json | ||
git commit -m "Update openrpc.json" || echo "No changes to commit" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload openrpc.json as an artifact | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: openrpc | ||
path: ./execution-apis/openrpc.json | ||
|
||
build-and-test: | ||
runs-on: [self-hosted, Linux, medium, ephemeral] | ||
needs: clone-and-build-execution-apis | ||
|
||
steps: | ||
- name: Checkout current repo | ||
- name: Checkout relay repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js TLS 18 | ||
|
@@ -62,5 +54,11 @@ jobs: | |
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Download openrpc.json artifact | ||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 | ||
with: | ||
name: openrpc | ||
path: ./openrpc_exec_apis.json | ||
|
||
- name: Run conformity tests | ||
run: npm run acceptancetest:rpc_api_schema_conformity |