-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1019 Bytes
/
nodeapp.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
name: Mocha Tests
env:
API_HOST: ${{ vars.API_HOST }}
API_KEY: ${{ secrets.API_KEY }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_SITE: us5.datadoghq.com
DD_ENV: staging
DD_SERVICE: lilt-node
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
on:
push:
branches: [ master, openapi-bindings ]
pull_request:
branches: [ master, openapi-bindings ]
jobs:
build:
runs-on: gcp-runner
steps:
- name: Checkout
uses: actions/checkout@v2
- name: 🔨 Setup Node.js
uses: actions/setup-node@v2
with:
always-auth: true
node-version: '20.10.0'
registry-url: https://npm.pkg.github.com
scope: '@lilt'
- name: Install dependencies
run: npm ci
- name: Install datadog tracing library
run: npm install dd-trace --save
- name: Run build
run: npm run build --if-present
- name: Run Mocha tests
run: npm test
env:
NODE_OPTIONS: -r dd-trace/ci/init