Skip to content

Update rpc-test workflow #125

Update rpc-test workflow

Update rpc-test workflow #125

Workflow file for this run

name: rpcv02
on:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
runs-on: ubuntu-22.04
services:
devnet:
image: shardlabs/starknet-devnet:latest
ports:
- 5050:5050
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: wait for devnet to be up...
run: ./.bin/devnet.sh
# Test rpc on devnet
- name: Test RPC v0.2 on devnet
run: echo "skip for now"
run: cd rpcv02 && go test -timeout 600s -v -env devnet .

Check failure on line 34 in .github/workflows/rpcv02.yml

View workflow run for this annotation

GitHub Actions / rpcv02

Invalid workflow file

The workflow is not valid. .github/workflows/rpcv02.yml (Line: 34, Col: 9): 'run' is already defined
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "http://localhost:5050/rpc"
# Test rpc on mock
- name: Test RPC v0.2 with mocks
run: cd rpcv02 && go test -v .
# Test rpc on testnet
- name: Test RPC v0.2 on testnet
run: cd rpcv02 && go test -timeout 1200s -v -env testnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet-goerli.cartridge.gg/"
# Test rpc on mainnet
- name: Test RPC v0.2 with mainnet
run: cd rpcv02 && go test -timeout 600s -v -env mainnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet.cartridge.gg/"