From 740c1df7867da5ed573d9247dfdec09881621a41 Mon Sep 17 00:00:00 2001 From: Andrew Chang Date: Fri, 7 Jan 2022 03:35:52 -1000 Subject: [PATCH] Add package manager CI build jobs --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e82dabdf..bf3596cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,16 +13,6 @@ jobs: - name: Test run: Sources/MockingbirdAutomationCli/buildAndRun.sh test e2e - test-podspec: - name: Test Podspec - runs-on: macOS-latest - steps: - - uses: actions/checkout@v2 - - name: Test - env: - GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} - run: pod spec lint MockingbirdFramework.podspec - test-example-project: name: Test Example Project (${{ matrix.type }}) runs-on: macOS-latest @@ -39,3 +29,33 @@ jobs: env: GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} run: Sources/MockingbirdAutomationCli/buildAndRun.sh test example ${{ matrix.type }} + + build-cocoapods: + name: Build CocoaPods + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - name: Build + env: + GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} + run: pod lib lint MockingbirdFramework.podspec + + build-carthage: + name: Build Carthage + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - name: Set Up Project + run: Sources/MockingbirdAutomationCli/buildAndRun.sh configure unload --keep MockingbirdFramework + - name: Build Release + run: Sources/MockingbirdAutomationCli/buildAndRun.sh build + + build-swiftpm: + name: Build SwiftPM + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - name: Build Debug + run: swift build --configuration debug + - name: Build Release + run: swift build --configuration release