-
Notifications
You must be signed in to change notification settings - Fork 15
162 lines (144 loc) · 4.22 KB
/
plebnet-playground.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: plebnet-playground
# Controls when the action will run.
on:
pull_request:
branches: #[ master ]
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- 'master' # includes master
- 'main' # includes main
# Triggers the workflow on push or pull request events but only for the master branch
push:
#paths:
# - '.github/workflows/automate.yml'
#schedule:
# - cron: "*/5 * * * *"
branches: #[ master ]
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- 'master' # includes master
- 'main' # includes main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
github-workspace:
name: github-workspace
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: styfle/[email protected]
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- name: Print github workspace
run: |
printenv
ubuntu-build_and_test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: styfle/[email protected]
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
fetch-depth: '0'
submodules: 'true'
set-safe-directory: 'true'
- uses: actions/[email protected]
- uses: syphar/restore-virtualenv@v1
id: cache-virtualenv
- uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- run: pip install -r requirements.txt
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: sudo apt install gawk
run: |
sudo apt install gawk
- name: make help report
#if: ${{ !env.ACT }}
run: |
make help report submodules
- name: make initialize init
#if: ${{ !env.ACT }}
run: |
make initialize init docker-pull
- name: make venv && . .venv/bin/activate
#if: ${{ !env.ACT }}
run: |
make venv && . .venv/bin/activate
make test-venv
- name: make build para=true
if: ${{ !env.ACT }}
run: |
make build para=true
- name: make install
if: ${{ !env.ACT }}
run: |
make install
- name: ./install.sh
if: ${{ !env.ACT }}
run: |
./install.sh
- name: make docs && git diff
if: ${{ !env.ACT }}
run: |
make docs && git diff
- name: play
if: ${{ !env.ACT }}
run: |
play
- name: play info
if: ${{ !env.ACT }}
run: |
play info
- name: play ids
if: ${{ !env.ACT }}
run: |
play ids
- name: play-bitcoin "bitcoin-cli -h"
if: ${{ !env.ACT }}
run: |
play-bitcoin "bitcoin-cli -h"
- name: play bitcoin config
if: ${{ !env.ACT }}
run: |
play bitcoin config
- name: play-bitcoin config
if: ${{ !env.ACT }}
run: |
play-bitcoin config
- name: play lnd config
if: ${{ !env.ACT }}
run: |
# play defaults to the lnd container
play lnd config
- name: play lnd "lncli -h"
if: ${{ !env.ACT }}
run: |
play lnd "lncli -h"
- name: play-lnd config
if: ${{ !env.ACT }}
run: |
play-lnd config
- name: play-lnd "lncli -h"
if: ${{ !env.ACT }}
run: |
play-lnd "lncli -h"
- name: uninstall
if: ${{ !env.ACT }}
run: |
make prune-playground || echo
make prune-cluster || echo
make prune || echo
docker ps
docker images
#make uninstall || echo