Browse Source

Create tests.yml

Mhd Hejazi 5 years ago
parent
commit
d26b98bf6b
2 changed files with 18 additions and 3 deletions
  1. 17 0
      .github/workflows/build.yml
  2. 1 3
      .github/workflows/tests.yml

+ 17 - 0
.github/workflows/build.yml

@@ -0,0 +1,17 @@
+name: Build
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+
+    runs-on: macos-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Build
+      run: swift build -v

+ 1 - 3
.github/workflows/swift.yml → .github/workflows/tests.yml

@@ -1,4 +1,4 @@
-name: Swift
+name: Tests
 
 on:
   push:
@@ -13,7 +13,5 @@ jobs:
 
     steps:
     - uses: actions/checkout@v2
-    - name: Build
-      run: swift build -v
     - name: Run tests
       run: swift test -v