Skip to content

Commit

Permalink
Creates separate workflow for conformity tests
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
  • Loading branch information
konstantinabl committed Jul 2, 2024
1 parent b8c3288 commit 795055f
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 24 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/acceptance-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ jobs:
operator_id: ${{ inputs.operator_id }}
operator_key: ${{ inputs.operator_key }}

rpc_api_schema_conformity:
name: API Conformity
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: api_conformity
envfile: ${{ inputs.network }}Acceptance.env
operator_id: ${{ inputs.operator_id }}
operator_key: ${{ inputs.operator_key }}

erc20:
name: ERC20
uses: ./.github/workflows/acceptance-workflow.yml
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ jobs:
with:
testfilter: api_batch3

rpc_api_schema_conformity:
name: API Conformity
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: rpc_api_schema_conformity

erc20:
name: ERC20
uses: ./.github/workflows/acceptance-workflow.yml
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/conformity-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Conformity Test Workflow

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
clone-and-build-execution-apis:
runs-on: [self-hosted, Linux, medium, ephemeral]

steps:
- name: Checkout execution-apis repo
uses: actions/checkout@v2
with:
repository: 'ethereum/execution-apis'
ref: 'main'
path: 'execution-apis'

- name: Use Node.js TLS 18
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18

- name: Install dependencies
run: npm install
working-directory: ./execution-apis

- 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 "action@github.com"
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 }}

build-and-test:
runs-on: [self-hosted, Linux, medium, ephemeral]
needs: clone-and-build-execution-apis

steps:
- name: Checkout current repo
uses: actions/checkout@v2

- name: Use Node.js TLS 18
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18

- name: Install dependencies
run: npm install

- name: Run conformity tests
run: npm run acceptancetest:rpc_api_schema_conformity
9 changes: 0 additions & 9 deletions .github/workflows/manual-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ jobs:
testfilter: api_batch3
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}


rpc_api_schema_conformity:
name: API Conformity
uses: ./.github/workflows/acceptance-workflow.yml
with:
testfilter: rpc_api_schema_conformity
networkTag: ${{inputs.networkNodeTag}}
mirrorTag: ${{inputs.mirrorNodeTag}}

erc20:
name: ERC20
Expand Down

0 comments on commit 795055f

Please sign in to comment.