Run Tests #2
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: 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 | |
run: | | |
NODE_OPTIONS="-r dd-trace/ci/init" DD_ENV=test-roca DD_SERVICE=close-the-deal-test 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 |