From ea9ae3871416166d1b0800da98c4f391525007a5 Mon Sep 17 00:00:00 2001 From: Ivan Shcherbak Date: Mon, 1 Jan 2024 16:09:27 +0200 Subject: [PATCH 1/6] Remove docker compose --- docker-compose.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 4859d79..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: "3" -services: - build: - image: composer:latest - volumes: - - ./:/app - user: "1000:1000" - command: "composer install" - test: - image: php:7.1-cli - depends_on: - - build - user: "1000:1000" - volumes: - - ./:/app - command: "./vendor/bin/phpunit" - working_dir: /app \ No newline at end of file From 328668acc1088b0a2e5049be6c6a9892cd5dfdab Mon Sep 17 00:00:00 2001 From: Ivan Shcherbak Date: Mon, 1 Jan 2024 16:12:55 +0200 Subject: [PATCH 2/6] add permission to test yaml --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7a9066c..ff66746 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,6 +9,8 @@ on: pull_request: branches: - master +permissions: + contents: read # to fetch code (actions/checkout) jobs: run: From 6db5b266f4e7b2a484760bf1d54ba7c11b1cd4e4 Mon Sep 17 00:00:00 2001 From: Ivan Shcherbak Date: Mon, 1 Jan 2024 17:25:38 +0200 Subject: [PATCH 3/6] fix test workflow --- .github/workflows/test.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ff66746..ba60ed2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,14 +1,8 @@ name: CI on: - schedule: - - cron: '00 1 * * 1' # At 01:00 on Mondays. - push: - branches: - - master - pull_request: - branches: - - master + - push + - pull_request: permissions: contents: read # to fetch code (actions/checkout) From fb6389a8c7b87f1ee28d5d58e220906b1ac9ea8a Mon Sep 17 00:00:00 2001 From: Ivan Shcherbak Date: Mon, 1 Jan 2024 17:26:45 +0200 Subject: [PATCH 4/6] fix test workflow --- .github/workflows/test.yaml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ba60ed2..76fe768 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,10 +1,6 @@ name: CI -on: - - push - - pull_request: -permissions: - contents: read # to fetch code (actions/checkout) +on: [push] jobs: run: @@ -36,13 +32,5 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --dev - - name: Run fixer - run: ./vendor/bin/php-cs-fixer fix . -v --dry-run --stop-on-violation - - name: Run tests run: ./vendor/bin/phpunit - - - name: Test & publish code coverage - uses: paambaati/codeclimate-action@v3.2.0 - env: - CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} From a01336d76085f7ff1030f7e2c4d07d77c681ea06 Mon Sep 17 00:00:00 2001 From: Ivan Shcherbak Date: Mon, 1 Jan 2024 17:27:46 +0200 Subject: [PATCH 5/6] fix test workflow --- .github/workflows/test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 76fe768..5d51737 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,6 +1,7 @@ name: CI -on: [push] +on: + - push jobs: run: From ff20029c4098f5d5bca0c6c833e99e6e8138d5cc Mon Sep 17 00:00:00 2001 From: Ivan Shcherbak Date: Tue, 2 Jan 2024 23:14:06 +0200 Subject: [PATCH 6/6] run checks on schedule --- .github/workflows/test.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5d51737..ce015b5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,7 +1,14 @@ name: CI on: - - push + schedule: + - cron: '00 1 * * 1' # At 01:00 on Mondays. + push: + branches: + - master + pull_request: + branches: + - master jobs: run: