From fa59cb972a189566a5dc443b861b1deb2a4329a1 Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Mon, 16 Oct 2023 16:53:55 +0200 Subject: [PATCH 1/3] fix ecc new dep name --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4e09e5c29..60d4b3b34 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "pleonasm/merkle-tree": "~1.0.0", "composer/semver": "^1.4.0|^3.2.0", "lastguest/murmurhash": "^v2.0.0", - "shanecurran/ecc": "^0.0.1", + "shanecurran/phpecc": "^0.0.1", "protonlabs/buffertools": "^0.5.0", "bitwasp/bech32": "^0.0.1" }, From 90c2e13e26ef59fad05f3ff48bae0a88054df897 Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Mon, 16 Oct 2023 16:56:15 +0200 Subject: [PATCH 2/3] run tests and phpstan in github actions --- .github/workflows/tests.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..c96bdec26 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,37 @@ +name: "Unit tests" + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + static-analysis-phpstan: + name: Unit tests + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: + - 8.1 + - 8.2 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + coverage: none + php-version: ${{ matrix.php-version }} + + - name: Install dependencies with composer + run: composer i --no-interaction --no-progress --no-suggest + + - name: Run PHPUnit + run: ./vendor/bin/phpunit --testdox + + - name: Run PHPStan + run: ./vendor/bin/phpstan From dcae2b961a0cd3764dfcb14a3d9b1c5a7f5f2dc2 Mon Sep 17 00:00:00 2001 From: Fabien Salathe Date: Tue, 17 Oct 2023 12:12:55 +0200 Subject: [PATCH 3/3] Fix branches names --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c96bdec26..ed94b2f19 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,9 +2,9 @@ name: "Unit tests" on: push: - branches: [ main, master ] + branches: [ main, master, 1.0 ] pull_request: - branches: [ main, master ] + branches: [ main, master, 1.0 ] jobs: static-analysis-phpstan: