Skip to content

Commit bcc016a

Browse files
committed
Renamed "master" to "main"
1 parent d985e70 commit bcc016a

File tree

3 files changed

+54
-46
lines changed

3 files changed

+54
-46
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 *
16+
args: '-v -r *'
1717
- name: Fail?
18-
run: exit ${{ steps.lc.outputs.exit_code }}
18+
run: 'exit ${{ steps.lc.outputs.exit_code }}'

.github/workflows/maven-test.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
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-
java: [ 8, 9, 10, 11, 12, 13, 14 ]
19-
16+
java:
17+
- 8
18+
- 9
19+
- 10
20+
- 11
21+
- 12
22+
- 13
23+
- 14
2024
steps:
21-
- uses: actions/checkout@v2
22-
with:
23-
fetch-depth: 0
24-
- name: Set up JDK ${{ matrix.java }}
25-
uses: actions/setup-java@v1
26-
with:
27-
java-version: ${{ matrix.java }}
28-
- name: Build and test with Maven
29-
run: mvn -B package -Dgpg.signature.skip=true --file pom.xml
25+
- uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
28+
- name: 'Set up JDK ${{ matrix.java }}'
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: '${{ matrix.java }}'
32+
- name: Build and test with Maven
33+
run: mvn -B package -Dgpg.signature.skip=true --file pom.xml

.github/workflows/sonar-scan.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
name: Sonar
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
steps:
17-
- uses: actions/checkout@v2
18-
with:
19-
fetch-depth: 0
20-
- name: Set up JDK
21-
uses: actions/setup-java@v1
22-
with:
23-
java-version: 11
24-
- name: Build with Maven
25-
run: mvn clean install -Dgpg.signature.skip=true --file pom.xml
26-
- name: Sonar Scan
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30-
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectName=client-encryption-java -Dsonar.projectKey=Mastercard_client-encryption-java -Dsonar.organization=mastercard -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.cpd.exclusions=**/OkHttp*.java -Dsonar.exclusions=**/*.xml -Dgpg.signature.skip=true
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: Set up JDK
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 11
22+
- name: Build with Maven
23+
run: mvn clean install -Dgpg.signature.skip=true --file pom.xml
24+
- name: Sonar Scan
25+
env:
26+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
27+
SONAR_TOKEN: '${{ secrets.SONAR_TOKEN }}'
28+
run: >-
29+
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
30+
-Dsonar.projectName=client-encryption-java
31+
-Dsonar.projectKey=Mastercard_client-encryption-java
32+
-Dsonar.organization=mastercard -Dsonar.host.url=https://sonarcloud.io
33+
-Dsonar.login=$SONAR_TOKEN -Dsonar.cpd.exclusions=**/OkHttp*.java
34+
-Dsonar.exclusions=**/*.xml -Dgpg.signature.skip=true

0 commit comments

Comments
 (0)