Compare commits

...
Author SHA1 Message Date
NickVs2015 b794af5f70 feat: run tests on feature branches by approval 2026-11-16 13:32:43 +03:00
+17 -4
View File
@@ -1038,11 +1038,23 @@ jobs:
echo "Pull request:" >> $GITHUB_STEP_SUMMARY
echo "[[#${{ fromJSON(steps.pull_request.outputs.data)[0].number }}] ${{ fromJSON(steps.pull_request.outputs.data)[0].title }}](${{ fromJSON(steps.pull_request.outputs.data)[0].html_url }})" >> $GITHUB_STEP_SUMMARY
# ------------------------------------------------------
Tests-Gate:
name: Tests gate
runs-on: ubuntu-latest
# The "tests" environment requires a reviewer, so a feature branch run pauses here
# until it is approved; dev and release tags go through the unprotected "tests-auto".
environment: ${{ (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')) && 'tests-auto' || 'tests' }}
steps:
- name: 'Open the tests stage'
run: echo "Tests stage opened for ${{ github.ref_name }}"
# ------------------------------------------------------
test-linux:
name: Test Linux (${{ matrix.filter }})
needs: Build-Linux-Ubuntu
needs: [Build-Linux-Ubuntu, Tests-Gate]
strategy:
fail-fast: false
@@ -1173,7 +1185,7 @@ jobs:
test-vps:
name: Test self-hosted VPS
needs: Build-Linux-Ubuntu
needs: [Build-Linux-Ubuntu, Tests-Gate]
# These tests install and remove docker containers on a single shared VPS:
# two runs at once corrupt each other's state, so only one job may touch it.
@@ -1259,7 +1271,7 @@ jobs:
test-windows:
name: Test Windows (${{ matrix.filter }})
needs: Build-Windows
needs: [Build-Windows, Tests-Gate]
strategy:
fail-fast: false
@@ -1382,7 +1394,7 @@ jobs:
test-macos:
name: Test macOS (${{ matrix.filter }})
needs: Build-MacOS
needs: [Build-MacOS, Tests-Gate]
strategy:
fail-fast: false
@@ -1491,6 +1503,7 @@ jobs:
# ------------------------------------------------------
test-android:
needs: Tests-Gate
runs-on: android-runner
env: