forked from libp2p/test-plans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
41 lines (35 loc) · 1001 Bytes
/
action.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
name: start testground
description: setup a local testground instance
runs:
using: "composite"
steps:
- name: Checkout testground
uses: actions/checkout@v2
with:
path: testground
repository: testground/testground
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.16.x"
- name: Install testground
run: make install
working-directory: testground
shell: bash
- name: Run the daemon or configure the client
shell: bash
run: |
if [[ ! -z "${TESTGROUND_ENDPOINT}" ]]; then
mkdir -p ~/testground/;
cat <<EOF >> ~/testground/.env.toml
[client]
endpoint = "${TESTGROUND_ENDPOINT}"
EOF
else
mkdir -p ~/testground/;
cat <<EOF >> ~/testground/.env.toml
[daemon.scheduler]
task_timeout_min = 60
EOF
testground daemon > testground.out 2> testground.err &
fi;