From 46c263b147fd775d7c86bc1013bb94421f38db70 Mon Sep 17 00:00:00 2001 From: Jordan Baird Date: Tue, 19 Dec 2023 14:36:04 -0700 Subject: [PATCH] Update and rename main.yml to test.yml --- .github/workflows/main.yml | 17 ----------------- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 3ffaa29..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Continuous Integration - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -jobs: - build: - - runs-on: macos-latest - - steps: - - uses: actions/checkout@v3 - - name: Test - run: swift test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f856c58 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Test + +on: + push: + branches: + - main + paths: + - ".github/workflows/test.yml" + - "**/*.swift" + pull_request: + paths: + - ".github/workflows/test.yml" + - "**/*.swift" + +jobs: + test: + if: '!github.event.pull_request.merged' + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - uses: swift-actions/setup-swift@v1 + - name: Check Swift Version + run: swift --version + - name: Run Tests + run: swift test -v