瀏覽代碼

Ensure unit tests action only runs in upstream repo and on PR/push hook

Deniz Cengiz 11 月之前
父節點
當前提交
5b8747269f
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      .github/workflows/unit_tests.yml

+ 2 - 4
.github/workflows/unit_tests.yml

@@ -1,8 +1,6 @@
 name: zzz [DO NOT RUN] Automated unit tests
 
 on:
-  workflow_dispatch: # TODO: remove this after testing?
-  
   pull_request:
     branches:
       - dev
@@ -26,7 +24,7 @@ jobs:
   test:
     name: Run Unit Tests
     runs-on: macos-15
-    #if: github.repository_owner == 'nightscout' # TODO: remove comment after testing
+    if: github.repository_owner == 'nightscout'
 
     steps:
       - name: Select Xcode version
@@ -131,4 +129,4 @@ jobs:
             fi
           else
             echo "::warning::Test log (xcodebuild.log) not found"
-          fi
+          fi