Skip to content

Commit 79af64b

Browse files
authored
Replace AZP with github actions (#147)
1 parent d615a97 commit 79af64b

File tree

3 files changed

+55
-53
lines changed

3 files changed

+55
-53
lines changed

.azure-pipelines/all.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: unit-${{ github.head_ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
pre-commit:
1014
runs-on: ubuntu-latest
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Run Integration Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: "0 4 * * *"
9+
10+
concurrency:
11+
group: integration-${{ github.head_ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
if: >
18+
(github.event_name == 'pull_request' &&
19+
github.event.pull_request.draft == false &&
20+
!contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
21+
!contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') &&
22+
contains(github.event.pull_request.labels.*.name, 'ci/integrations')) ||
23+
github.event_name == 'schedule'
24+
services:
25+
datadog-agent:
26+
image: datadog/agent:latest
27+
ports:
28+
- 8126:8126
29+
env:
30+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
31+
DD_HOSTNAME: "none"
32+
DD_INSIDE_CI: "true"
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Set up Node 14
36+
uses: actions/setup-node@v2
37+
with:
38+
node-version: 14
39+
- name: Run integration tests
40+
run: ./run-tests.sh
41+
shell: bash
42+
env:
43+
CI: "true"
44+
DD_AGENT_HOST: localhost
45+
DD_ENV: prod
46+
DD_SERVICE: datadog-api-client-typescript
47+
DD_TAGS: "team:integration-tools-and-libraries"
48+
DD_TEST_CLIENT_API_KEY: ${{ secrets.DD_CLIENT_API_KEY }}
49+
DD_TEST_CLIENT_APP_KEY: ${{ secrets.DD_CLIENT_APP_KEY }}
50+
DD_TRACE_ANALYTICS_ENABLED: "true"
51+
RECORD: "none"

0 commit comments

Comments
 (0)