Skip to content

Commit

Permalink
fix: run only devnet on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Jul 15, 2022
1 parent 808e1f7 commit 613084b
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,6 @@ on:
- develop

jobs:
tests:
strategy:
matrix:
name: [sequencer-test, sequencer-goerli, rpc-goerli]
include:
- name: sequencer-test
TEST_PROVIDER_BASE_URL: http://127.0.0.1:5050/
- name: sequencer-goerli
TEST_PROVIDER_BASE_URL: https://alpha4.starknet.io
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
- name: rpc-goerli
TEST_RPC_URL: ${{ secrets.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}

name: Run test on ${{ matrix.name }}
runs-on: ubuntu-latest

services:
devnet:
image: janek2601/starknet-devnet-patched
ports:
- 5050:5050
env:
TEST_PROVIDER_BASE_URL: ${{ matrix.TEST_PROVIDER_BASE_URL }}
TEST_RPC_URL: ${{ matrix.TEST_RPC_URL }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ matrix.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ matrix.TEST_ACCOUNT_ADDRESS }}

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: lts/*
cache: 'npm'
- run: npm ci
- run: npm test

build-and-test:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 613084b

Please sign in to comment.