Przeglądaj źródła

:octocat: CI update

smiley 3 lat temu
rodzic
commit
34dff2816d
4 zmienionych plików z 7 dodań i 35 usunięć
  1. 4 5
      .github/workflows/tests.yml
  2. 0 24
      .travis.yml
  3. 2 5
      README.md
  4. 1 1
      composer.json

+ 4 - 5
.github/workflows/tests.yml

@@ -20,7 +20,7 @@ jobs:
 
 
     steps:
     steps:
       - name: "Checkout"
       - name: "Checkout"
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
 
 
       - name: "Install PHP"
       - name: "Install PHP"
         uses: shivammathur/setup-php@v2
         uses: shivammathur/setup-php@v2
@@ -52,10 +52,11 @@ jobs:
           - "7.3"
           - "7.3"
           - "7.4"
           - "7.4"
           - "8.0"
           - "8.0"
+          - "8.1"
 
 
     steps:
     steps:
       - name: "Checkout"
       - name: "Checkout"
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
 
 
       - name: "Install PHP with extensions"
       - name: "Install PHP with extensions"
         uses: shivammathur/setup-php@v2
         uses: shivammathur/setup-php@v2
@@ -72,6 +73,4 @@ jobs:
         run: php vendor/phpunit/phpunit/phpunit --configuration=phpunit.xml
         run: php vendor/phpunit/phpunit/phpunit --configuration=phpunit.xml
 
 
       - name: "Send code coverage report to Codecov.io"
       - name: "Send code coverage report to Codecov.io"
-        uses: codecov/codecov-action@v1
-        with:
-          token: ${{ secrets.CODECOV_TOKEN }}
+        uses: codecov/codecov-action@v3

+ 0 - 24
.travis.yml

@@ -1,24 +0,0 @@
-branches:
-  only:
-    - main
-    - v3.2.x
-
-addons:
-  apt:
-    packages:
-      - imagemagick
-
-language: php
-
-matrix:
-  include:
-    - php: 7.2
-    - php: 7.3
-    - php: 7.4
-
-before_install:
-  - pecl channel-update pecl.php.net
-  - printf "\n" | pecl install imagick
-install: travis_retry composer install --no-interaction --prefer-source
-script: vendor/bin/phpunit --configuration phpunit.xml --coverage-clover clover.xml
-after_script: bash <(curl -s https://codecov.io/bash)

+ 2 - 5
README.md

@@ -5,7 +5,6 @@ namespaced, cleaned up, improved and other stuff.
 
 
 [![Packagist version][packagist-badge]][packagist]
 [![Packagist version][packagist-badge]][packagist]
 [![License][license-badge]][license]
 [![License][license-badge]][license]
-[![Travis CI][travis-badge]][travis]
 [![CodeCov][coverage-badge]][coverage]
 [![CodeCov][coverage-badge]][coverage]
 [![Scrunitizer CI][scrutinizer-badge]][scrutinizer]
 [![Scrunitizer CI][scrutinizer-badge]][scrutinizer]
 [![Packagist downloads][downloads-badge]][downloads]
 [![Packagist downloads][downloads-badge]][downloads]
@@ -17,8 +16,6 @@ namespaced, cleaned up, improved and other stuff.
 [packagist]: https://packagist.org/packages/chillerlan/php-qrcode
 [packagist]: https://packagist.org/packages/chillerlan/php-qrcode
 [license-badge]: https://img.shields.io/github/license/chillerlan/php-qrcode.svg?style=flat-square
 [license-badge]: https://img.shields.io/github/license/chillerlan/php-qrcode.svg?style=flat-square
 [license]: https://github.com/chillerlan/php-qrcode/blob/main/LICENSE
 [license]: https://github.com/chillerlan/php-qrcode/blob/main/LICENSE
-[travis-badge]: https://img.shields.io/travis/chillerlan/php-qrcode.svg?style=flat-square
-[travis]: https://travis-ci.org/chillerlan/php-qrcode
 [coverage-badge]: https://img.shields.io/codecov/c/github/chillerlan/php-qrcode.svg?style=flat-square
 [coverage-badge]: https://img.shields.io/codecov/c/github/chillerlan/php-qrcode.svg?style=flat-square
 [coverage]: https://codecov.io/github/chillerlan/php-qrcode
 [coverage]: https://codecov.io/github/chillerlan/php-qrcode
 [scrutinizer-badge]: https://img.shields.io/scrutinizer/g/chillerlan/php-qrcode.svg?style=flat-square
 [scrutinizer-badge]: https://img.shields.io/scrutinizer/g/chillerlan/php-qrcode.svg?style=flat-square
@@ -65,8 +62,8 @@ echo '<img src="'.(new QRCode)->render($data).'" alt="QR Code" />';
 ```
 ```
 
 
 <p align="center">
 <p align="center">
-	<img alt="QR codes are awesome!" src="https://raw.githubusercontent.com/chillerlan/php-qrcode/main/examples/example_image.png">
-	<img alt="QR codes are awesome!" src="https://raw.githubusercontent.com/chillerlan/php-qrcode/main/examples/example_svg.png">
+	<img alt="QR codes are awesome!" src="https://raw.githubusercontent.com/chillerlan/php-qrcode/v3.2.x/examples/example_image.png">
+	<img alt="QR codes are awesome!" src="https://raw.githubusercontent.com/chillerlan/php-qrcode/v3.2.x/examples/example_svg.png">
 </p>
 </p>
 
 
 Wait, what was that? Please again, slower!
 Wait, what was that? Please again, slower!

+ 1 - 1
composer.json

@@ -30,7 +30,7 @@
 	},
 	},
 	"require-dev": {
 	"require-dev": {
 		"phpunit/phpunit": "^8.5",
 		"phpunit/phpunit": "^8.5",
-		"phan/phan": "^3.2.2",
+		"phan/phan": "^5.3",
 		"setasign/fpdf": "^1.8.2"
 		"setasign/fpdf": "^1.8.2"
 	},
 	},
 	"suggest": {
 	"suggest": {