From 8227416d7307eb661d5b2a98ac16ae2c0b321121 Mon Sep 17 00:00:00 2001 From: Nick Bourdakos Date: Fri, 22 Apr 2022 15:22:20 -0400 Subject: [PATCH 1/2] Add GitHub action for testing swift package --- .github/workflows/validate-swift-package.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/validate-swift-package.yaml diff --git a/.github/workflows/validate-swift-package.yaml b/.github/workflows/validate-swift-package.yaml new file mode 100644 index 00000000..14ed1180 --- /dev/null +++ b/.github/workflows/validate-swift-package.yaml @@ -0,0 +1,23 @@ +name: Validate Swift Package + +on: [push, pull_request] + +env: + FORCE_COLOR: true + +jobs: + build: + name: Build + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - name: Build + run: swift build + + test: + name: Test + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - name: Test + run: swift test From c15fba9631bae062d9e7b2daf35d42d9044d15f5 Mon Sep 17 00:00:00 2001 From: Nick Bourdakos Date: Fri, 22 Apr 2022 15:57:37 -0400 Subject: [PATCH 2/2] Checkout with submodules --- .github/workflows/validate-swift-package.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-swift-package.yaml b/.github/workflows/validate-swift-package.yaml index 14ed1180..1c62521b 100644 --- a/.github/workflows/validate-swift-package.yaml +++ b/.github/workflows/validate-swift-package.yaml @@ -10,7 +10,9 @@ jobs: name: Build runs-on: macOS-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + submodules: true - name: Build run: swift build @@ -18,6 +20,8 @@ jobs: name: Test runs-on: macOS-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + submodules: true - name: Test run: swift test