From 535a90353d7d42cd7f27727450f09d8284bf8994 Mon Sep 17 00:00:00 2001 From: Vlad Velicu Date: Tue, 11 Jul 2023 16:57:39 +0100 Subject: [PATCH] retry --- .github/workflows/check_package.yml | 41 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/check_package.yml b/.github/workflows/check_package.yml index 2425174f6..572411013 100644 --- a/.github/workflows/check_package.yml +++ b/.github/workflows/check_package.yml @@ -1,32 +1,35 @@ name: Swift-Package on: + push: + branches: [ master, release/** ] pull_request: - branches: - - master - - release/** paths: - Package.swift jobs: build: - name: build-and-test - runs-on: macOS-latest + name: Swift ${{ matrix.swift }} + runs-on: macos-latest + strategy: + matrix: + swift: ["5.7", "5.8"] steps: - - uses: actions/checkout@v2 - - name: Build & test MacOS - run: | - swift build -v - swift test -v - - name: Build & test iOS - run: | - device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | sed 's/Simulator//g' | awk '{$1=$1;print}'` - echo $device | cat > device - echo "Selected the device : ${device}" + - uses: actions/checkout@v2 + - uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.VERIFY_SPM_KEY }} - DEVICE=$(cat device) - xcodebuild build-for-testing -scheme "CBL_Swift" -project CouchbaseLite.xcodeproj -destination "platform=iOS Simulator,name=${DEVICE}" + - name: Get verification scripts + run: git clone git@github.com:couchbaselabs/couchbase-lite-ios-release-verify.git -b CBL-2862 - DEVICE=$(cat device) - xcodebuild test-without-building -scheme "CBL_Swift" -project CouchbaseLite.xcodeproj -destination "platform=iOS Simulator,name=${DEVICE}" \ No newline at end of file + - uses: swift-actions/setup-swift@v1.23.0 + with: + swift-version: ${{ matrix.swift }} + + - name: Replace Swift Package + run: cp -f Package.swift couchbase-lite-ios-release-verify/ReleaseVerify/ReleaseVerify-SPM-EE/Package.swift + + - name: Validation + run: couchbase-lite-ios-release-verify/Scripts/verify_spm.sh -ce