Skip to content

Commit a91db0a

Browse files
committed
Renamed "master" to "main"
1 parent f94a73e commit a91db0a

File tree

3 files changed

+56
-57
lines changed

3 files changed

+56
-57
lines changed

.github/workflows/broken-links.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
on:
1+
'on':
22
push:
3-
branches: master
3+
branches: main
44
schedule:
5-
- cron: "0 16 * * *"
5+
- cron: 0 16 * * *
66
name: broken links?
77
jobs:
88
linkChecker:
@@ -13,6 +13,6 @@ jobs:
1313
id: lc
1414
uses: peter-evans/[email protected]
1515
with:
16-
args: -v -r *.md
16+
args: '-v -r *.md'
1717
- name: Fail?
18-
run: exit ${{ steps.lc.outputs.exit_code }}
18+
run: 'exit ${{ steps.lc.outputs.exit_code }}'

.github/workflows/sonar-scanner.yml

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,42 @@
11
name: Sonar
2-
3-
on:
2+
'on':
43
push:
5-
branches: [ master ]
4+
branches:
5+
- main
66
pull_request_target:
77
types:
88
- opened
99
- synchronize
1010
- reopened
1111
schedule:
12-
- cron: "0 16 * * *"
13-
12+
- cron: 0 16 * * *
1413
jobs:
1514
build:
16-
1715
runs-on: ubuntu-latest
18-
1916
steps:
20-
- uses: actions/checkout@v2
21-
- name: Use Node.js 13
22-
uses: actions/setup-node@v1
23-
with:
24-
node-version: 13
25-
- name: Build with npm
26-
run: |
27-
npm ci
28-
npm run build --if-present
29-
npm test
30-
npm run coverage
31-
- name: SonarCloud
32-
uses: sonarsource/sonarcloud-github-action@master
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36-
with:
37-
args: >
38-
-Dsonar.organization=mastercard
39-
-Dsonar.projectName=client-encryption-nodejs
40-
-Dsonar.projectKey=Mastercard_client-encryption-nodejs
41-
-Dsonar.sources=./lib
42-
-Dsonar.tests=./test
43-
-Dsonar.coverage.jacoco.xmlReportPaths=test-results.xml
44-
-Dsonar.javascript.lcov.reportPaths=.nyc_output/coverage.lcov
45-
-Dsonar.host.url=https://sonarcloud.io
46-
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js 13
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 13
22+
- name: Build with npm
23+
run: |
24+
npm ci
25+
npm run build --if-present
26+
npm test
27+
npm run coverage
28+
- name: SonarCloud
29+
uses: sonarsource/sonarcloud-github-action@master
30+
env:
31+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
32+
SONAR_TOKEN: '${{ secrets.SONAR_TOKEN }}'
33+
with:
34+
args: >
35+
-Dsonar.organization=mastercard
36+
-Dsonar.projectName=client-encryption-nodejs
37+
-Dsonar.projectKey=Mastercard_client-encryption-nodejs
38+
-Dsonar.sources=./lib -Dsonar.tests=./test
39+
-Dsonar.coverage.jacoco.xmlReportPaths=test-results.xml
40+
-Dsonar.javascript.lcov.reportPaths=.nyc_output/coverage.lcov
41+
-Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{
42+
secrets.SONAR_TOKEN }}

.github/workflows/test.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
name: Build & Test
2-
3-
on:
2+
'on':
43
push:
5-
branches: [ master ]
4+
branches:
5+
- main
66
pull_request:
7-
branches: [ master ]
7+
branches:
8+
- main
89
schedule:
9-
- cron: "0 16 * * *"
10-
10+
- cron: 0 16 * * *
1111
jobs:
1212
build:
13-
1413
runs-on: ubuntu-latest
15-
1614
strategy:
1715
matrix:
18-
node-version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x]
19-
16+
node-version:
17+
- 10.x
18+
- 11.x
19+
- 12.x
20+
- 13.x
21+
- 14.x
22+
- 15.x
2023
steps:
21-
- uses: actions/checkout@v2
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
- run: npm ci
27-
- run: npm run build --if-present
28-
- run: npm test
24+
- uses: actions/checkout@v2
25+
- name: 'Use Node.js ${{ matrix.node-version }}'
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: '${{ matrix.node-version }}'
29+
- run: npm ci
30+
- run: npm run build --if-present
31+
- run: npm test

0 commit comments

Comments
 (0)