Skip to content

Merge pull request #831 from starknet-io/develop #13

Merge pull request #831 from starknet-io/develop

Merge pull request #831 from starknet-io/develop #13

Workflow file for this run

name: '[PR|Push] Main'
on:
pull_request:
branches:
- main
paths:
- '__mocks__/**'
- '__tests__/**'
- 'src/**'
- 'package*'
- 'ts*'
- '!www/**'
push:
branches:
- main
paths:
- '__mocks__/**'
- '__tests__/**'
- 'src/**'
- 'package*'
- 'ts*'
- '!www/**'
jobs:
skip_check:
name: Skip check
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_duplicate.outputs.should_skip }}
steps:
- id: skip_duplicate
uses: fkirc/skip-duplicate-actions@v5
with:
cancel_others: 'true'
tests:
name: Run test on ${{ matrix.name }}
needs: [skip_check]
if: needs.skip_check.outputs.should_skip != 'true'
strategy:
max-parallel: 1 # needed until we get a seperate account for the rpc provider, until then running them in parallel would result in a nonce issue
matrix:
name: [sequencer-goerli, rpc-goerli]
include:
- name: sequencer-goerli
ENABLE_SEQUENCER: true
ENABLE_RPC: false
- name: rpc-goerli
ENABLE_SEQUENCER: false
ENABLE_RPC: true
uses: ./.github/workflows/_test.yml
secrets:
TEST_PROVIDER_BASE_URL: ${{ matrix.ENABLE_SEQUENCER && secrets.TEST_PROVIDER_BASE_URL || ''}}
TEST_RPC_URL: ${{ matrix.ENABLE_RPC && secrets.TEST_RPC_URL || ''}}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }}
release:
name: Release
needs: [skip_check, tests]
if: |
!cancelled() && !failure()
&& needs.skip_check.outputs.should_skip != ''
&& github.event_name == 'push'
uses: ./.github/workflows/_release.yml
secrets: inherit