mongodb-atlas-api-client 2.31.0 → 3.1.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,72 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '39 7 * * 2'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'javascript' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v3
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v2
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+
52
+ # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53
+ # queries: security-extended,security-and-quality
54
+
55
+
56
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57
+ # If this step fails, then you should remove it and run the build manually (see below)
58
+ - name: Autobuild
59
+ uses: github/codeql-action/autobuild@v2
60
+
61
+ # ℹ️ Command-line programs to run using the OS shell.
62
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63
+
64
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
65
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66
+
67
+ # - run: |
68
+ # echo "Run, Build Application using script"
69
+ # ./location_of_script_within_repo/buildscript.sh
70
+
71
+ - name: Perform CodeQL Analysis
72
+ uses: github/codeql-action/analyze@v2
@@ -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