Skip to content

Commit

Permalink
Upgrade to SDK version 1.35.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-a-o committed Jul 24, 2022
1 parent 4555756 commit fb876f8
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ jobs:

- name: Download PHP Installer
run: |
php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.0/installer.php', 'installer.php');"
php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.1/installer.php', 'installer.php');"
php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; } echo PHP_EOL;"
- name: Install PHP Extension (Windows)
if: matrix.operating-system == 'windows-2019'
run: php installer.php -v 1.35.0
run: php installer.php -v 1.35.1

- name: Install PHP Extension (Ubuntu/Mac)
if: matrix.operating-system != 'windows-2019'
run: sudo php installer.php -v 1.35.0
run: sudo php installer.php -v 1.35.1

- name: Test PHP Extension
run: php installer.php -v 1.35.0 -T
run: php installer.php -v 1.35.1 -T

- name: Check PHP Extensions
run: php -m
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ Use [radianceteam/ton-client-php](https://hub.docker.com/r/radianceteam/ton-clie
as a base image in your `Dockerfile`:

```bash
FROM radianceteam/ton-client-php:1.35.0-php7.4-cli
FROM radianceteam/ton-client-php:1.35.1-php7.4-cli
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "php", "./your-script.php" ]
```

Basically, do anything you can do with the [original PHP image](https://hub.docker.com/_/php)
by just replacing `FROM php:<PHP_VERSION>-<PHP_IMAGE_VARIANT>` with
`FROM radianceteam/ton-client-php:1.35.0-php<PHP_VERSION>-<PHP_IMAGE_VARIANT>`.
`FROM radianceteam/ton-client-php:1.35.1-php<PHP_VERSION>-<PHP_IMAGE_VARIANT>`.

Note: only `cli`, `fpm` and `zts` variants are supported ATM.

Expand Down
2 changes: 1 addition & 1 deletion api.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.35.0",
"version": "1.35.1",
"modules": [
{
"name": "client",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"require": {
"php": ">=7.4",
"ext-json": "*",
"ext-ton_client": ">=1.35.0",
"ext-ton_client": ">=1.35.1",
"psr/log": "^1.1"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docker/7.4/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:7.4-cli

RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.0/installer.php', 'installer.php');"
RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.1/installer.php', 'installer.php');"
RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;"
RUN php installer.php -v 1.35.0
RUN php installer.php -v 1.35.0 -T
RUN php installer.php -v 1.35.1
RUN php installer.php -v 1.35.1 -T
RUN rm installer.php
6 changes: 3 additions & 3 deletions docker/7.4/fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:7.4-fpm

RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.0/installer.php', 'installer.php');"
RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.1/installer.php', 'installer.php');"
RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;"
RUN php installer.php -v 1.35.0
RUN php installer.php -v 1.35.0 -T
RUN php installer.php -v 1.35.1
RUN php installer.php -v 1.35.1 -T
RUN rm installer.php
6 changes: 3 additions & 3 deletions docker/7.4/zts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:7.4-zts

RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.0/installer.php', 'installer.php');"
RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.1/installer.php', 'installer.php');"
RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;"
RUN php installer.php -v 1.35.0
RUN php installer.php -v 1.35.0 -T
RUN php installer.php -v 1.35.1
RUN php installer.php -v 1.35.1 -T
RUN rm installer.php
6 changes: 3 additions & 3 deletions docker/8.0/cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:8.0-cli

RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.0/installer.php', 'installer.php');"
RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.1/installer.php', 'installer.php');"
RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;"
RUN php installer.php -v 1.35.0
RUN php installer.php -v 1.35.0 -T
RUN php installer.php -v 1.35.1
RUN php installer.php -v 1.35.1 -T
RUN rm installer.php
6 changes: 3 additions & 3 deletions docker/8.0/fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:8.0-fpm

RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.0/installer.php', 'installer.php');"
RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.1/installer.php', 'installer.php');"
RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;"
RUN php installer.php -v 1.35.0
RUN php installer.php -v 1.35.0 -T
RUN php installer.php -v 1.35.1
RUN php installer.php -v 1.35.1 -T
RUN rm installer.php
6 changes: 3 additions & 3 deletions docker/8.0/zts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM php:8.0-zts

RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.0/installer.php', 'installer.php');"
RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.35.1/installer.php', 'installer.php');"
RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;"
RUN php installer.php -v 1.35.0
RUN php installer.php -v 1.35.0 -T
RUN php installer.php -v 1.35.1
RUN php installer.php -v 1.35.1 -T
RUN rm installer.php
2 changes: 1 addition & 1 deletion tests/TON/Client/ClientModuleTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function testVersion()
$result = $this->_client->version();
$this->assertNotNull($result);
$this->assertMatchesRegularExpression('/^\d+\.\d+\.\d+$/', $result->getVersion());
$this->assertEquals('1.35.0', $result->getVersion());
$this->assertEquals('1.35.1', $result->getVersion());
}

public function testGetApiReference()
Expand Down

0 comments on commit fb876f8

Please sign in to comment.