-
Notifications
You must be signed in to change notification settings - Fork 0
155 lines (146 loc) · 4.38 KB
/
node.js.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
name: Time of Day
on:
push:
branches: ['develop', 'main']
pull_request:
branches: ['develop', 'main']
workflow_dispatch:
jobs:
setup-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
# - name: Install Dependencies
# run: npm ci
# - name: Run Format
# run: npm run format-check
# unit-and-component-test:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node]
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run jest tests
# run: npm run test -- --coverage
# - name: Upload Coverage to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage/*.json
# name: codecov-umbrella
# fail_ci_if_error: true
# api-test:
# runs-on: ubuntu-latest
# timeout-minutes: 5
# needs: [setup-node]
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run api tests
# run: npm run api-test
# cypress-run-chrome:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Chrome
# run: npm run cy:pipeline-run-chrome
# cypress-run-safari-webkit:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '2m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Install webkit Dependencies
# run: npx playwright install-deps webkit
# - name: Run Cypress Tests against Safari-Webkit
# run: npm run cy:pipeline-run-webkit
# cypress-run-firefox:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '5m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Firefox
# run: npm run cy:pipeline-run-firefox
# cypress-run-edge:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '7m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Edge
# run: npm run cy:pipeline-run-edge
# cypress-run-electron:
# runs-on: ubuntu-latest
# timeout-minutes: 20
# needs: [setup-node, unit-and-component-test, api-test]
# steps:
# - name: Quick Sleep/Delay
# uses: GuillaumeFalourd/wait-sleep-action@v1
# with:
# time: '9m'
# - name: Checkout Code
# uses: actions/checkout@v4
# - name: Install Dependencies
# run: npm ci
# - name: Run Cypress Tests against Electron
# run: npm run cy:pipeline-run-electron
k6-run:
runs-on: ubuntu-latest
needs: [setup-node]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Start Backend Server
run: |
npm run start-server &
sleep 15s &&
curl http://localhost:8000 -I &&
# - name: Start App
# run: |
# npm run start-app &
# sleep 15s &&
# curl http://localhost:3000 -I &&
- name: Run k6 tests
uses: grafana/[email protected]
with:
filename: k6/tests/baseline-test.js