From 1de77e377ecc52a36f96922d88e16434a7caddbc Mon Sep 17 00:00:00 2001 From: Dima Date: Fri, 6 Jun 2025 13:07:54 +0300 Subject: [PATCH 1/2] Revert "add workflow for PR from forks" This reverts commit 72798d21a543bdeb6106385bf39a854c86288268. --- .github/workflows/pre-testing.yml | 15 --------------- .github/workflows/testing.yml | 18 ++---------------- 2 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/pre-testing.yml diff --git a/.github/workflows/pre-testing.yml b/.github/workflows/pre-testing.yml deleted file mode 100644 index 8925f04..0000000 --- a/.github/workflows/pre-testing.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Pre-testing checks - -on: - push: - branches: [ develop ] - pull_request: - branches: [ develop ] - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - run: echo "Success" \ No newline at end of file diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 5622c34..a3f71bb 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -3,20 +3,11 @@ # All rights reserved. name: Тестирование - -on: - workflow_run: - workflows: ["Pre-testing checks"] - types: - - completed - -permissions: - checks: write - contents: read +# Любой пуш и pr в проекте +on: [push, pull_request] jobs: test: - if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ${{ matrix.os }} strategy: matrix: @@ -26,7 +17,6 @@ jobs: os: [windows-latest, ubuntu-22.04] locale: ['ru_RU'] fail-fast: false - steps: - name: Установка локали if: matrix.os == startsWith(matrix.os, 'windows') @@ -38,10 +28,6 @@ jobs: - name: Актуализация uses: actions/checkout@v4.2.2 - with: - fetch-depth: 0 - repository: ${{ github.event.workflow_run.head_repository.full_name }} - ref: ${{ github.event.workflow_run.head_sha }} # Установка OneScript конкретной версии - name: Установка OneScript From 1c66a4ca79da1cc85bd26f1dcf6fba5ce3dd2218 Mon Sep 17 00:00:00 2001 From: Dima Date: Fri, 6 Jun 2025 13:17:30 +0300 Subject: [PATCH 2/2] add fetch-depth --- .github/workflows/testing.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index a3f71bb..878e8e0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -28,6 +28,8 @@ jobs: - name: Актуализация uses: actions/checkout@v4.2.2 + with: + fetch-depth: 0 # Установка OneScript конкретной версии - name: Установка OneScript