-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.5 KB
/
CD.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
# To run self hosted on ubuntu 20.04: apt install build-essential
name: Continues Delivery
on:
push:
pull_request:
jobs:
PerformanceTest:
timeout-minutes: 2880
runs-on: self-hosted
steps:
- name: 'Cleanup build folder'
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
- uses: actions/checkout@v3
- name: Use Node.js 12.x
uses: actions/setup-node@v3
with:
node-version: 12.x
cache: 'npm'
- name: Use Python 2.7
uses: actions/setup-python@v3
with:
python-version: 2.7
env:
PYTHON_VERSION: 2.7
- name: Install dependencies
run: |
npm install
cd server && npm install
cd grafana && npm install
- name: Run build
run: npm run build
- name: Get IP
run: hostname -I
- name: Start Grafana instance
run: cd server/grafana && node index
- name: Execute server
env:
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
STEAM_ID: ${{ secrets.STEAM_ID }}
run: cd server && node index.js 50000