From 22bb9887953040c04bbedcea9e18a5e561e3c376 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 12:34:08 +0300 Subject: [PATCH 01/14] workflows test --- doc/GET-TEST-CERT.md | 2 +- tmp/src.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 tmp/src.txt diff --git a/doc/GET-TEST-CERT.md b/doc/GET-TEST-CERT.md index 4497dcb..46f9948 100755 --- a/doc/GET-TEST-CERT.md +++ b/doc/GET-TEST-CERT.md @@ -10,4 +10,4 @@ -certusage "1.3.6.1.5.5.7.3.4,1.3.6.1.5.5.7.3.2,1.2.643.2.2.34.6" \ -ku -cont '\\.\HDIMAGE\ContainerName' \ -provtype 80 ./main.req -``` +``` \ No newline at end of file diff --git a/tmp/src.txt b/tmp/src.txt new file mode 100755 index 0000000..fd0e9c8 --- /dev/null +++ b/tmp/src.txt @@ -0,0 +1 @@ +foo bar master \ No newline at end of file From ad0356877f59b2fc883d2e142c0ebc31f922356f Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 12:35:46 +0300 Subject: [PATCH 02/14] remove space in dirname --- { .github => .github}/workflows/static-analysis.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename { .github => .github}/workflows/static-analysis.yml (100%) diff --git a/ .github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml similarity index 100% rename from .github/workflows/static-analysis.yml rename to .github/workflows/static-analysis.yml From 9a3229ab3977b4b2d6f8bf653263280894dc333c Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 12:49:39 +0300 Subject: [PATCH 03/14] change php versions --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 412b1d7..c460880 100755 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ } ], "require": { - "php": "=>7.2 <8.0", + "php": ">=7.2 <8.0", "ext-mbstring": "*" }, "require-dev": { From 51fe2a93b794787aed1b4959339439dece2b854a Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 12:52:38 +0300 Subject: [PATCH 04/14] fix action config --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 3def7a8..96bc30a 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -81,7 +81,7 @@ jobs: run: | composer install ${{ env.COMPOSER_FLAGS }} rm composer.lock - composer config platform.php ${{ matrix.php }} + composer config platform.php ${{ matrix.php-version }} - name: Run phpstan run: composer phpstan \ No newline at end of file From 13f77ffaef1f879b835e9e0812c377ca240ba97e Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:03:09 +0300 Subject: [PATCH 05/14] checkout@v3 --- .github/workflows/static-analysis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 96bc30a..523a809 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -24,7 +24,7 @@ jobs: steps: - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" @@ -55,7 +55,7 @@ jobs: access_token: ${{ github.token }} - name: "Checkout" - uses: "actions/checkout@v2" + uses: "actions/checkout@v3" - name: "Install PHP" uses: "shivammathur/setup-php@v2" From dd6532fac52aed2d3981700eb18d483936bd5aec Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:05:36 +0300 Subject: [PATCH 06/14] cancel-workflow-action@0.9.1 --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 523a809..f2acd53 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -49,7 +49,7 @@ jobs: - "7.4" steps: - name: "Cancel Previous Runs" - uses: styfle/cancel-workflow-action@0.9.0 + uses: styfle/cancel-workflow-action@0.9.1 with: all_but_latest: true access_token: ${{ github.token }} From cea4802de38daf5ab7c2198ba470ecd80acd1009 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:19:05 +0300 Subject: [PATCH 07/14] cancel-workflow-action@latest --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index f2acd53..8633503 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -49,7 +49,7 @@ jobs: - "7.4" steps: - name: "Cancel Previous Runs" - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action with: all_but_latest: true access_token: ${{ github.token }} From 89c296a139598e88e4ee9b3fd67d207a36294be7 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:25:05 +0300 Subject: [PATCH 08/14] cancel-workflow-action@0.11 --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 8633503..22cebad 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -49,7 +49,7 @@ jobs: - "7.4" steps: - name: "Cancel Previous Runs" - uses: styfle/cancel-workflow-action + uses: styfle/cancel-workflow-action@0.11 with: all_but_latest: true access_token: ${{ github.token }} From 4ee5ca83b286b8c628b8695205ba5d5da105843e Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:30:01 +0300 Subject: [PATCH 09/14] cancel-workflow-action@0.11.0 --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 22cebad..9de9444 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -49,7 +49,7 @@ jobs: - "7.4" steps: - name: "Cancel Previous Runs" - uses: styfle/cancel-workflow-action@0.11 + uses: styfle/cancel-workflow-action@0.11.0 with: all_but_latest: true access_token: ${{ github.token }} From 4838f7fdc15481508a9ba3f85775c8e7396777c2 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:40:39 +0300 Subject: [PATCH 10/14] replace set-output to $GITHUB_OUTPUT --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 9de9444..eacac4b 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -68,7 +68,7 @@ jobs: - name: "Get composer cache directory" id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "name=dir::$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: "Cache Composer Directory" uses: actions/cache@v2 From d3db914e92e6041a8eededb191641f841f0651b3 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:44:39 +0300 Subject: [PATCH 11/14] replace $GITHUB_OUTPUT-output to set --- .github/workflows/static-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index eacac4b..9de9444 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -68,7 +68,7 @@ jobs: - name: "Get composer cache directory" id: composer-cache - run: echo "name=dir::$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: "Cache Composer Directory" uses: actions/cache@v2 From 2823fafaf9325eab4cde5161e573132ffcc88639 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:51:59 +0300 Subject: [PATCH 12/14] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/static-analysis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 9de9444..e844d1c 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,8 +1,8 @@ name: "Static analysis code" on: - - push - - pull_request + push: + pull_request: env: COMPOSER_FLAGS: "--ansi --prefer-dist --no-interaction --no-progress" From 5bb2dee8a7a7bf8d1a653cb6b649bfecdffeca4e Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 13:54:44 +0300 Subject: [PATCH 13/14] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/static-analysis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index e844d1c..a16ccd5 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,8 +1,6 @@ name: "Static analysis code" -on: - push: - pull_request: +on: [push, pull_request] env: COMPOSER_FLAGS: "--ansi --prefer-dist --no-interaction --no-progress" From da3f3bf4f645fa176cc47157ab59d166be7ea194 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 14:08:04 +0300 Subject: [PATCH 14/14] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/static-analysis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index a16ccd5..d224c3a 100755 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,6 +1,10 @@ name: "Static analysis code" -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: env: COMPOSER_FLAGS: "--ansi --prefer-dist --no-interaction --no-progress"