Просмотр исходного кода

Add final step for matrix tests, some cleanup (#1408)

* add final step for matrix tests

* change test names

* add names

* change run conditions

* fix test names
Robert Brennan 1 год назад
Родитель
Сommit
d1f62bb6be

+ 7 - 0
.github/workflows/ghcr.yml

@@ -38,3 +38,10 @@ jobs:
         run: |
           ORG_NAME=$(echo "${{ github.repository }}" | tr '[A-Z]' '[a-z]' | cut -d '/' -f 1)
           ./containers/build.sh ${{ matrix.image }} $ORG_NAME --push
+
+  docker_build_success:
+    name: Docker Build Success
+    runs-on: ubuntu-latest
+    needs: ghcr_build_and_push
+    steps:
+    - run: echo Done!

+ 6 - 1
.github/workflows/lint.yml

@@ -1,9 +1,14 @@
 name: Lint
 
-on: [push, pull_request]
+on:
+  push:
+    branches:
+    - main
+  pull_request:
 
 jobs:
   lint-frontend:
+    name: Lint frontend
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4

+ 14 - 2
.github/workflows/run-integration-tests.yml

@@ -1,9 +1,14 @@
 name: Run Integration Tests
 
-on: [push, pull_request]
+on:
+  push:
+    branches:
+    - main
+  pull_request:
 
 jobs:
-  on-linux:
+  integration-tests:
+    name: Integration Tests
     runs-on: ubuntu-latest
     strategy:
       matrix:
@@ -74,3 +79,10 @@ jobs:
           rm -rf workspace
           mkdir workspace
           WORKSPACE_BASE="$GITHUB_WORKSPACE/workspace" WORKSPACE_MOUNT_PATH="$GITHUB_WORKSPACE/workspace" poetry run pytest -s ./tests/integration
+
+  test_matrix_success:
+    name: All Integration Tests Passed
+    runs-on: ubuntu-latest
+    needs: [integration-tests]
+    steps:
+    - run: echo Done!

+ 16 - 3
.github/workflows/run-unit-tests.yml

@@ -1,9 +1,14 @@
 name: Run Unit Tests
 
-on: [push, pull_request]
+on:
+  push:
+    branches:
+    - main
+  pull_request:
 
 jobs:
-  on-macos:
+  test-on-macos:
+    name: Test on macOS
     runs-on: macos-13
     strategy:
       matrix:
@@ -27,7 +32,8 @@ jobs:
         run: make build
       - name: Run Tests
         run: poetry run pytest ./tests/unit
-  on-linux:
+  test-on-linux:
+    name: Test on Linux
     runs-on: ubuntu-latest
     strategy:
       matrix:
@@ -45,3 +51,10 @@ jobs:
         run: make build
       - name: Run Tests
         run: poetry run pytest ./tests/unit
+
+  test_matrix_success:
+    name: All Mac/Linux Tests Passed
+    runs-on: ubuntu-latest
+    needs: [test-on-macos, test-on-linux]
+    steps:
+    - run: echo Done!