mongodb-atlas-api-client 2.32.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,46 @@
1
+ name: Test Coverage
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ jobs:
8
+ run-tests:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v1
12
+ with:
13
+ persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
14
+ fetch-depth: 0 # otherwise, you will failed to push refs to dest repo:
15
+ - uses: actions/setup-node@v1
16
+ with:
17
+ node-version: 12
18
+ registry-url: https://registry.npmjs.org/
19
+ - run: npm install
20
+ - run: npm test
21
+ - name: get specified property
22
+ id: repository_type
23
+ uses: zoexx/github-action-json-file-properties@release
24
+ with:
25
+ file_path: "test-results/result.json"
26
+ prop_path: "coverage.percent"
27
+
28
+ - run: |
29
+ echo ${{steps.repository_type.outputs.value}}
30
+
31
+ - name: Create badge
32
+ uses: emibcn/badge-action@d6f51ff11b5c3382b3b88689ae2d6db22d9737d1
33
+ with:
34
+ label: Tests
35
+ status: 'Tests Coverage: ${{steps.repository_type.outputs.value}}%'
36
+ color: '31c653'
37
+ path: badge.svg
38
+
39
+ - name: Upload badge to Gist
40
+ # Upload only for master branch
41
+ if: github.ref == 'refs/heads/master'
42
+ uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d
43
+ with:
44
+ token: ${{ secrets.GIST_TOKEN }}
45
+ gistURL: https://gist.github.com/montumodi/4863975b3d11c22536fcf9fcc8d237dd
46
+ file: badge.svg