Adding readme information #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |