-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (47 loc) · 1.24 KB
/
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
50
51
52
53
54
55
56
57
58
name: tests
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
if: "!startsWith(github.event.pull_request.title, 'chore(main): release')"
strategy:
fail-fast: false
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: use pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: use node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: pnpm install
run: |
npm pkg delete scripts.prepare
pnpm install --no-frozen-lockfile
- name: Run Build
run: pnpm prepublish
- name: install @sap/cds-dk
run: |
npm i -g @sap/cds-dk
- name: start both cap server
run: |
pnpm dev:cdspluginui5&
pnpm dev:cdspluginui5deps&
pnpm dev:sapux&
- name: wait for server
run: |
while ! nc -z localhost 4004; do sleep 0.1; done
while ! nc -z localhost 4005; do sleep 0.1; done
while ! nc -z localhost 4006; do sleep 0.1; done
- name: run tests
run: |
pnpm test