Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit d1bf37c

Browse files
committed
Renamed "master" to "main"
1 parent 0af2de7 commit d1bf37c

File tree

3 files changed

+73
-67
lines changed

3 files changed

+73
-67
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.yml

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,52 @@
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:
1313
runs-on: ubuntu-latest
14-
1514
steps:
16-
- uses: actions/checkout@v2
17-
- name: Install PHP
18-
uses: shivammathur/setup-php@v2
19-
with:
20-
php-version: 7.4
21-
coverage: xdebug
22-
- name: Setup java
23-
uses: actions/setup-java@v1
24-
with:
25-
java-version: '11'
26-
- name: Install dependencies
27-
run: |
28-
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492.zip
29-
unzip sonar-scanner-cli-3.3.0.1492.zip
30-
composer --no-plugins --no-scripts install
31-
composer --no-plugins --no-scripts dump-autoload -o
32-
vendor/bin/phpunit --configuration ./phpunit.xml --teamcity
33-
- name: Sonar
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37-
run: |
38-
sonar-scanner-3.3.0.1492/bin/sonar-scanner \
39-
-Dsonar.projectName=client-encryption-php \
40-
-Dsonar.projectKey=Mastercard_client-encryption-php \
41-
-Dsonar.organization=mastercard \
42-
-Dsonar.sources=./src \
43-
-Dsonar.tests=./tests \
44-
-Dsonar.exclusions=**/vendor/**,**/tests/**,**/*.xml \
45-
-Dsonar.php.tests.reportPath=tests.xml \
46-
-Dsonar.php.coverage.reportPaths=coverage.xml \
47-
-Dsonar.host.url=https://sonarcloud.io \
48-
-Dsonar.login=$SONAR_TOKEN
15+
- uses: actions/checkout@v2
16+
- name: Install PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 7.4
20+
coverage: xdebug
21+
- name: Setup java
22+
uses: actions/setup-java@v1
23+
with:
24+
java-version: '11'
25+
- name: Install dependencies
26+
run: >
27+
wget
28+
https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492.zip
29+
30+
unzip sonar-scanner-cli-3.3.0.1492.zip
31+
32+
composer --no-plugins --no-scripts install
33+
34+
composer --no-plugins --no-scripts dump-autoload -o
35+
36+
vendor/bin/phpunit --configuration ./phpunit.xml --teamcity
37+
- name: Sonar
38+
env:
39+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
40+
SONAR_TOKEN: '${{ secrets.SONAR_TOKEN }}'
41+
run: |
42+
sonar-scanner-3.3.0.1492/bin/sonar-scanner \
43+
-Dsonar.projectName=client-encryption-php \
44+
-Dsonar.projectKey=Mastercard_client-encryption-php \
45+
-Dsonar.organization=mastercard \
46+
-Dsonar.sources=./src \
47+
-Dsonar.tests=./tests \
48+
-Dsonar.exclusions=**/vendor/**,**/tests/**,**/*.xml \
49+
-Dsonar.php.tests.reportPath=tests.xml \
50+
-Dsonar.php.coverage.reportPaths=coverage.xml \
51+
-Dsonar.host.url=https://sonarcloud.io \
52+
-Dsonar.login=$SONAR_TOKEN

.github/workflows/test.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
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:
1313
strategy:
1414
matrix:
15-
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
16-
15+
php:
16+
- 5.6
17+
- 7
18+
- 7.1
19+
- 7.2
20+
- 7.3
21+
- 7.4
1722
runs-on: ubuntu-latest
18-
1923
steps:
20-
- uses: actions/checkout@v2
21-
22-
- name: Install PHP
23-
uses: shivammathur/setup-php@v2
24-
with:
25-
php-version: ${{ matrix.php }}
26-
coverage: none
27-
28-
- name: Install dependencies
29-
run: |
30-
composer --no-plugins --no-scripts install
31-
composer --no-plugins --no-scripts dump-autoload -o
32-
vendor/bin/phpunit --configuration ./phpunit.xml --teamcity
24+
- uses: actions/checkout@v2
25+
- name: Install PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: '${{ matrix.php }}'
29+
coverage: none
30+
- name: Install dependencies
31+
run: |
32+
composer --no-plugins --no-scripts install
33+
composer --no-plugins --no-scripts dump-autoload -o
34+
vendor/bin/phpunit --configuration ./phpunit.xml --teamcity

0 commit comments

Comments
 (0)