-
Notifications
You must be signed in to change notification settings - Fork 27
88 lines (86 loc) · 2.6 KB
/
test-data-api.yml
File metadata and controls
88 lines (86 loc) · 2.6 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Test Data API Snippets
on:
pull_request:
paths:
- "examples/data-api/**"
jobs:
bluehawk-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Run Bluehawk Check
working-directory: examples/data-api
run: |
bash ./check.sh
test-data-api-generated-endpoints:
runs-on: ubuntu-latest
environment: "Data API Test"
env:
ATLAS_PUBLIC_API_KEY: ${{ secrets.ATLAS_PUBLIC_API_KEY }}
ATLAS_PRIVATE_API_KEY: ${{ secrets.ATLAS_PRIVATE_API_KEY }}
CLUSTER_NAME: ${{ vars.CLUSTER_NAME }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies
working-directory: examples/data-api
run: |
sudo apt update
sudo apt install -y shunit2
sudo apt install -y curl
sudo apt install -y jq
- name: Run Data API Tests
working-directory: examples/data-api
run: |
bash ./generated-endpoints.sh
test-data-api-custom-endpoints:
runs-on: ubuntu-latest
environment: "Data API Test"
env:
ATLAS_PUBLIC_API_KEY: ${{ secrets.ATLAS_PUBLIC_API_KEY }}
ATLAS_PRIVATE_API_KEY: ${{ secrets.ATLAS_PRIVATE_API_KEY }}
CLUSTER_NAME: ${{ vars.CLUSTER_NAME }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies
working-directory: examples/data-api
run: |
sudo apt update
sudo apt install -y shunit2
sudo apt install -y curl
sudo apt install -y jq
- name: Run Data API Tests
working-directory: examples/data-api
run: |
bash ./custom-endpoints.sh
test-data-api-data-types:
runs-on: ubuntu-latest
environment: "Data API Test"
env:
ATLAS_PUBLIC_API_KEY: ${{ secrets.ATLAS_PUBLIC_API_KEY }}
ATLAS_PRIVATE_API_KEY: ${{ secrets.ATLAS_PRIVATE_API_KEY }}
CLUSTER_NAME: ${{ vars.CLUSTER_NAME }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies
working-directory: examples/data-api
run: |
sudo apt update
sudo apt install -y shunit2
sudo apt install -y curl
sudo apt install -y jq
- name: Run Data API Tests
working-directory: examples/data-api
run: |
bash ./data-types.sh