Skip to content

Commit

Permalink
GitHub workflow cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MBarwicki committed Oct 6, 2023
1 parent 545e2fc commit 7bac6c5
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 12 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/main_ci_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: (main) Auto CI run

on:
pull_request:
branches:
- 'main'

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 on devnet
run: cd rpc && go test -timeout 600s -v -env devnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "http://localhost:5050/rpc"

# Test rpc on mock
- name: Test RPC with mocks
run: cd rpc && go test -v .

# Test rpc on testnet
- name: Test RPC on testnet
run: echo "Skip for now - need public endpoint that follows rpc spec"
#run: cd rpc && 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 with mainnet
run: echo "Skip for now - need public endpoint that follows rpc spec"
#run: cd rpc && go test -timeout 600s -v -env mainnet .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "https://starknet.cartridge.gg/"
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: release
name: (main) Manual Publish Release
on:
workflow_dispatch

on:
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-22.04
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test_account.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: account
name: (all branches) Auto CI - Account tests

on:
push:
Expand All @@ -18,10 +18,11 @@ jobs:
- 5050:5050

steps:
- uses: actions/checkout@v3
- name: Checkout branch
uses: actions/checkout@v3

- name: Set up Go
- uses: actions/setup-go[@v4.1.0](https://github.com/v4.1.0)
uses: actions/setup-go[@v4.1.0](https://github.com/v4.1.0)
with:
go-version-file: go.mod

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test_rpc.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: rpc
name: (All branches) Auto CI - all tests

on:
push:
branches:
- '**'
pull_request:
branches:
- 'main'
tags-ignore:
- '**'

jobs:
build:
Expand Down

0 comments on commit 7bac6c5

Please sign in to comment.