-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (32 loc) · 946 Bytes
/
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
name: Run Tests
on:
push:
branches:
- '**'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
DD_SERVICE: close-the-deal-tests
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
- name: Setup web app
run: npm run serve-app &
- name: Run tests
## ******CLOSE THE DEAL TODO*******: SUBSTITUTE BY THE COMMAND IN THE IN APP ONBOARDING
run: |
NODE_OPTIONS="-r dd-trace/ci/init" DD_ENV=test-juan DD_SERVICE=close-the-deal-tests npm test
continue-on-error: true
env:
NODE_OPTIONS: -r dd-trace/ci/init
- name: Check quality gate
run: |
npx @datadog/datadog-ci gate evaluate