|
8 | 8 | - 48-implement-semantic-version |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - # security-audit: |
12 | | - # name: Running npm audit |
13 | | - # runs-on: ubuntu-latest |
14 | | - # timeout-minutes: 60 |
15 | | - # steps: |
16 | | - # # - name: Clone and checkout branch |
17 | | - # # uses: actions/checkout@master |
18 | | - |
19 | | - # # - name: Set up Node.js version |
20 | | - # # uses: actions/setup-node@v1 |
21 | | - # # with: |
22 | | - # # node-version: '12.x' |
23 | | - |
24 | | - # - name: Security Audit |
25 | | - # run: npm audit --audit-level=moderate |
26 | 11 |
|
27 | 12 | ci-test: |
28 | 13 | name: Running unit tests |
|
31 | 16 | steps: |
32 | 17 | - name: Checkout |
33 | 18 | uses: actions/checkout@v1 |
34 | | - # - name: Clone and checkout branch |
35 | | - # uses: actions/checkout@master |
36 | | - |
37 | 19 | - name: Set up Node.js version |
38 | 20 | uses: actions/setup-node@v1 |
39 | 21 | with: |
|
43 | 25 | run: npm install |
44 | 26 |
|
45 | 27 |
|
46 | | - # - name: Inject Secrets |
47 | | - # shell: python |
48 | | - # env: |
49 | | - # SCOPES: ${{ secrets.scopes }} |
50 | | - # CLIENT_ID: ${{ secrets.client_id }} |
51 | | - # AUTHORITY: ${{ secrets.authority }} |
52 | | - # BASE_PATH: "src/environments/" |
53 | | - # run: | |
54 | | - # import os |
55 | | - # import json |
56 | | - # data = {} |
57 | | - # base_path = os.environ.get('BASE_PATH', 'src/environments/') |
58 | | - # with open(base_path + "keys.example.json", "r+") as jsonFileRead: |
59 | | - # data = json.load(jsonFileRead) |
60 | | - # data["scopes"] = str(os.environ['SCOPES']).split(",") |
61 | | - # data["client_id"] = os.environ['CLIENT_ID'] |
62 | | - # data["authority"] = os.environ['AUTHORITY'] |
63 | | - # with open(base_path + ".keys.json", "w+") as jsonFileWrite: |
64 | | - # json.dump(data, jsonFileWrite) |
65 | | - |
66 | | - # - name: Run the test |
67 | | - # run: npm run ci-test --if-present |
68 | | - |
69 | | - |
70 | | - |
71 | 28 | - name: Run Semantic-release |
72 | 29 | run: npx semantic-release |
73 | 30 | env: |
|
0 commit comments