diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e89ce0ed --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI + +on: [push] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: PHPUnit Tests for php7.4 + uses: php-actions/phpunit@v3 + with: + configuration: tests/phpunit.xml + version: 5.7.25 + php_version: 7.4 + args: --coverage-text diff --git a/lang/ca.inc.php b/lang/ca.inc.php index 604924c7..7e425d76 100644 --- a/lang/ca.inc.php +++ b/lang/ca.inc.php @@ -1,5 +1,4 @@ -
-<?php + \ No newline at end of file +$messages['invalidsshkey'] = "Input SSH Key looks invalid"; diff --git a/lang/it.inc.php b/lang/it.inc.php index c5afc0e3..790a6fa1 100644 --- a/lang/it.inc.php +++ b/lang/it.inc.php @@ -152,3 +152,4 @@ $messages['badquality'] = "La qualità della password è troppo bassa"; $messages['tooyoung'] = "La password è stata cambiata troppo di recente"; $messages['inhistory'] = "La password è nello storico delle precedenti"; +$messages['invalidsshkey'] = "Input SSH Key looks invalid"; diff --git a/tests/CheckPasswordTest.php b/tests/CheckPasswordTest.php index 5af210af..2458e243 100644 --- a/tests/CheckPasswordTest.php +++ b/tests/CheckPasswordTest.php @@ -2,7 +2,7 @@ require_once __DIR__ . '/../lib/vendor/defuse-crypto.phar'; -class CheckPasswordTest extends \PHPUnit_Framework_TestCase +class CheckPasswordTest extends \PHPUnit\Framework\TestCase { /** * Test check_password_strength function diff --git a/tests/CheckSshkeyTest.php b/tests/CheckSshkeyTest.php index 796e4771..62022644 100644 --- a/tests/CheckSshkeyTest.php +++ b/tests/CheckSshkeyTest.php @@ -1,6 +1,6 @@ ++ + ++ +. ++