-
Notifications
You must be signed in to change notification settings - Fork 16
51 lines (40 loc) · 1.1 KB
/
smoke-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: CMS dev server test
on: push
jobs:
dev-server-smoke-test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node: [16, 18]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: examples/hello-world
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: NPM install
run: |
npm install
- name: Run dev server
run: |
npm run start &
- name: Basic dev server home test
run: |
curl --no-progress-meter http://localhost:3000/ --output home.txt
ls -lh
wc home.txt
echo "Grepping home.txt"
grep -q '/partial/Cars' home.txt
echo "-----"
cat home.txt
- name: Basic dev server partial test
run: |
curl --no-progress-meter http://localhost:3000/partial/Cars --output Cars.txt
echo "Grepping Cars.txt"
grep -q 'Volkswagen' Cars.txt
echo "-----"
cat Cars.txt