-
Notifications
You must be signed in to change notification settings - Fork 109
49 lines (38 loc) · 1.18 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: test
on:
push:
branches:
- '**'
tags-ignore:
- '**'
schedule:
- cron: "42 2 * * *"
jobs:
build:
runs-on: ubuntu-22.04
services:
devnet:
image: shardlabs/starknet-devnet:0.3.4
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
- name: Test contracts deployment and execute
run: cd contracts && go test -env devnet -v -run "^(TestGateway|TestRPC)" .
- name: Test Accounts (starknet.go) on devnet
run: go test -timeout 600s -v -env devnet -run "^(TestGateway|TestRPC|TestGeneral)" .
env:
TESTNET_ACCOUNT_PRIVATE_KEY: ${{ secrets.TESTNET_ACCOUNT_PRIVATE_KEY }}
INTEGRATION_BASE: "http://localhost:5050/rpc"
- name: Test sessionkey on devnet
run: cd plugins/xsessions && ./sessionkey.sh
- name: Test Gateway with testnet
run: cd gateway && go test -v -env testnet .
- name: Test Gateway with devnet
run: cd gateway && go test -v -env devnet .