From 09c0935b7da8740246194df6214f0080e6382cba Mon Sep 17 00:00:00 2001 From: Anish0999 <68567707+Anish0999@users.noreply.github.com> Date: Fri, 5 Jan 2024 03:32:51 -0500 Subject: [PATCH 01/15] Create swiftlint.yml --- .github/workflows/swiftlint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/swiftlint.yml diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml new file mode 100644 index 0000000..c26e448 --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -0,0 +1,28 @@ +name: SwiftLint + +on: + pull_request: + paths: + - '.github/workflows/swiftlint.yml' + - '.swiftlint.yml' + - '**/*.swift' + +jobs: + SwiftLint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: GitHub Action for SwiftLint + uses: norio-nomura/action-swiftlint@3.2.1 + - name: GitHub Action for SwiftLint with --strict + uses: norio-nomura/action-swiftlint@3.2.1 + with: + args: --strict + - name: GitHub Action for SwiftLint (Only files changed in the PR) + uses: norio-nomura/action-swiftlint@3.2.1 + env: + DIFF_BASE: ${{ github.base_ref }} + - name: GitHub Action for SwiftLint (Different working directory) + uses: norio-nomura/action-swiftlint@3.2.1 + env: + WORKING_DIRECTORY: Source From cb1e7d67884c3a494d7b5eaf951f3ba6240299ce Mon Sep 17 00:00:00 2001 From: Anish0999 <68567707+Anish0999@users.noreply.github.com> Date: Fri, 5 Jan 2024 03:34:07 -0500 Subject: [PATCH 02/15] Create swift.yml --- .github/workflows/swift.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..bd797ce --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,24 @@ +name: Swift + +on: + pull_request: + branches: [ master ] + paths: + - '**/*.swift' + - '**/*.yml' + +jobs: + test: + name: Run Swift Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.26.0 + + - name: Run tests + run: swift test + working-directory: StringCatalogEnum From e539975da2d9c8c4f0222e86eb7bb6062ed73e07 Mon Sep 17 00:00:00 2001 From: Anish0999 <68567707+Anish0999@users.noreply.github.com> Date: Sun, 14 Jan 2024 12:10:46 -0500 Subject: [PATCH 03/15] Delete .github/workflows/swift.yml --- .github/workflows/swift.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index bd797ce..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Swift - -on: - pull_request: - branches: [ master ] - paths: - - '**/*.swift' - - '**/*.yml' - -jobs: - test: - name: Run Swift Tests - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Setup Swift - uses: swift-actions/setup-swift@v1.26.0 - - - name: Run tests - run: swift test - working-directory: StringCatalogEnum From 8b83a01cc5be8d7f0fb053329946d09fcb41ff0c Mon Sep 17 00:00:00 2001 From: Anish0999 <68567707+Anish0999@users.noreply.github.com> Date: Sun, 14 Jan 2024 12:11:39 -0500 Subject: [PATCH 04/15] Create swift.yml --- .github/workflows/swift.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..cd5bafe --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,24 @@ +name: Swift + +on: + push: + branches: [ master ] + paths: + - '**/*.swift' + - '**/*.yml' + +jobs: + test: + name: Run Swift Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.26.0 + + - name: Run tests + run: swift test + working-directory: StringCatalogEnum From 90ea2b44e17fed246e71d8f24fc76d8ef6944767 Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 00:13:29 -0500 Subject: [PATCH 05/15] Delete .github/workflows/swift.yml --- .github/workflows/swift.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index cd5bafe..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Swift - -on: - push: - branches: [ master ] - paths: - - '**/*.swift' - - '**/*.yml' - -jobs: - test: - name: Run Swift Tests - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Setup Swift - uses: swift-actions/setup-swift@v1.26.0 - - - name: Run tests - run: swift test - working-directory: StringCatalogEnum From 3c11b14f5984c32eb3645821f62463ca4760704e Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 00:15:12 -0500 Subject: [PATCH 06/15] Create swift.yml --- .github/workflows/swift.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..e3c9ae6 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,26 @@ +name: Swift + +on: + push: + branches: [ master ] + paths: + - '**/*.swift' + - '**/*.yml' + +jobs: + test: + name: Run Swift Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.26.0 + + - name: Run tests with Quick and Nimble + run: | + swift build + swift test --enable-test-discovery + working-directory: StringCatalogEnum From 4392f0b5f38cade5fe716aa6d1cbaef832e81cab Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:21:38 -0500 Subject: [PATCH 07/15] Create test.sh --- test.sh | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 test.sh diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..97779c9 --- /dev/null +++ b/test.sh @@ -0,0 +1,230 @@ +#!/bin/bash + +GREEN="\033[0;32m" +CLEAR="\033[0m" + +if which xcodebuild > /dev/null; then + echo -e "Gathering ${GREEN}xcodebuild sdk versions${CLEAR}..." + BUILD_DIR=`pwd`/build + LATEST_IOS_SDK_VERSION=`xcodebuild -showsdks | grep iphonesimulator | cut -d ' ' -f 4 | ruby -e 'puts STDIN.read.chomp.split("\n").last'` + LATEST_IOS_VERSION=`xcrun simctl list | grep ^iOS | ruby -e 'puts /\(([0-9.]+).*\)/.match(STDIN.read.chomp.split("\n").last).to_a[1]'` + LATEST_TVOS_SDK_VERSION=`xcodebuild -showsdks | grep appletvsimulator | cut -d ' ' -f 4 | ruby -e 'puts STDIN.read.chomp.split("\n").last'` + LATEST_TVOS_VERSION=`xcrun simctl list | grep ^tvOS | ruby -e 'puts /\(([0-9.]+).*\)/.match(STDIN.read.chomp.split("\n").last).to_a[1]'` + LATEST_WATCHOS_SDK_VERSION=`xcodebuild -showsdks | grep -e '-sdk watchos' | cut -d ' ' -f 2 | ruby -e 'puts STDIN.read.chomp.split("\n").last'` + LATEST_WATCHOS_VERSION=`xcrun simctl list | grep ^watchOS | ruby -e 'puts /\(([0-9.]+).*\)/.match(STDIN.read.chomp.split("\n").last).to_a[1]'` + LATEST_MACOS_SDK_VERSION=`xcodebuild -showsdks | grep -e '-sdk macosx' | cut -d ' ' -f 2 | ruby -e 'puts STDIN.read.chomp.split("\n").last'` + BUILD_IOS_SDK_VERSION=${NIMBLE_BUILD_IOS_SDK_VERSION:-$LATEST_IOS_SDK_VERSION} + RUNTIME_IOS_VERSION=${NIMBLE_RUNTIME_IOS_VERSION:-$LATEST_IOS_VERSION} + BUILD_TVOS_SDK_VERSION=${NIMBLE_BUILD_TVOS_SDK_VERSION:-$LATEST_TVOS_SDK_VERSION} + RUNTIME_TVOS_VERSION=${NIMBLE_RUNTIME_TVOS_VERSION:-$LATEST_TVOS_VERSION} + BUILD_WATCHOS_SDK_VERSION=${NIMBLE_BUILD_WATCHOS_SDK_VERSION:-$LATEST_WATCHOS_SDK_VERSION} + RUNTIME_WATCHOS_VERSION=${NIMBLE_RUNTIME_WATCHOS_VERSION:-$LATEST_WATCHOS_VERSION} + BUILD_MACOS_SDK_VERSION=${NIMBLE_BUILD_MACOS_SDK_VERSION:-$LATEST_MACOS_SDK_VERSION} +fi + +set -e + +function color_if_overridden { + local actual=$1 + local env_var=$2 + if [ -z "$env_var" ]; then + printf "$actual" + else + printf "$GREEN$actual$CLEAR" + fi +} + +function print_env { + echo "=== Environment ===" + echo " iOS:" + echo " Latest iOS SDK: $LATEST_IOS_SDK_VERSION" + echo " Building with iOS SDK: `color_if_overridden $BUILD_IOS_SDK_VERSION $NIMBLE_BUILD_IOS_SDK_VERSION`" + echo " Running with iOS: `color_if_overridden $RUNTIME_IOS_VERSION $NIMBLE_RUNTIME_IOS_VERSION`" + echo + echo " tvOS:" + echo " Latest tvOS SDK: $LATEST_TVOS_SDK_VERSION" + echo " Building with tvOS SDK: `color_if_overridden $BUILD_TVOS_SDK_VERSION $NIMBLE_BUILD_TVOS_SDK_VERSION`" + echo " Running with tvOS: `color_if_overridden $RUNTIME_TVOS_VERSION $NIMBLE_RUNTIME_TVOS_VERSION`" + echo + echo " watchOS:" + echo " Latest watchOS SDK: $LATEST_WATCHOS_SDK_VERSION" + echo " Building with watchOS SDK: `color_if_overridden $BUILD_WATCHOS_SDK_VERSION $NIMBLE_BUILD_WATCHOS_SDK_VERSION`" + echo " Running with watchOS: `color_if_overridden $RUNTIME_WATCHOS_VERSION $NIMBLE_RUNTIME_WATCHOS_VERSION`" + echo + echo " macOS:" + echo " Latest macOS SDK: $LATEST_MACOS_SDK_VERSION" + echo " Building with macOS SDK: `color_if_overridden $BUILD_MACOS_SDK_VERSION $NIMBLE_BUILD_MACOS_SDK_VERSION`" + echo + echo "======= END =======" + echo +} + +function run { + echo -e "$GREEN==>$CLEAR $@" + "$@" +} + +function test_ios { + run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble" -configuration "Debug" -destination "generic/platform=iOS" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build | xcpretty + + run osascript -e 'tell app "Simulator" to quit' + run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble" -configuration "Debug" -sdk "iphonesimulator$BUILD_IOS_SDK_VERSION" -destination "name=iPhone SE (3rd generation),OS=$RUNTIME_IOS_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_tvos { + run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble" -configuration "Debug" -destination "generic/platform=tvOS" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build | xcpretty + + run osascript -e 'tell app "Simulator" to quit' + run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble" -configuration "Debug" -sdk "appletvsimulator$BUILD_TVOS_SDK_VERSION" -destination "name=Apple TV,OS=$RUNTIME_TVOS_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_watchos { + run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble" -configuration "Debug" -destination "generic/platform=watchOS" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build | xcpretty + + run osascript -e 'tell app "Simulator" to quit' + run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble" -configuration "Debug" -sdk "watchsimulator$BUILD_WATCHOS_SDK_VERSION" -destination "name=Apple Watch Series 6 (40mm),OS=$RUNTIME_WATCHOS_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_macos { + run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble" -configuration "Debug" -sdk "macosx$BUILD_MACOS_SDK_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_xcode_spm_macos { + mv Nimble.xcodeproj Nimble.xcodeproj.bak + trap 'mv Nimble.xcodeproj.bak Nimble.xcodeproj' EXIT + run set -o pipefail && xcodebuild -scheme "Nimble" -configuration "Debug" -sdk "macosx$BUILD_MACOS_SDK_VERSION" -destination "platform=macOS" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_xcode_spm_ios { + run osascript -e 'tell app "Simulator" to quit' + mv Nimble.xcodeproj Nimble.xcodeproj.bak + trap 'mv Nimble.xcodeproj.bak Nimble.xcodeproj' EXIT + run set -o pipefail && xcodebuild -scheme "Nimble" -configuration "Debug" -sdk "iphonesimulator$BUILD_IOS_SDK_VERSION" -destination "name=iPhone SE (3rd generation),OS=$RUNTIME_IOS_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_xcode_spm_tvos { + run osascript -e 'tell app "Simulator" to quit' + mv Nimble.xcodeproj Nimble.xcodeproj.bak + trap 'mv Nimble.xcodeproj.bak Nimble.xcodeproj' EXIT + run set -o pipefail && xcodebuild -scheme "Nimble" -configuration "Debug" -sdk "appletvsimulator$BUILD_TVOS_SDK_VERSION" -destination "name=Apple TV,OS=$RUNTIME_TVOS_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_xcode_spm_watchos { + run osascript -e 'tell app "Simulator" to quit' + mv Nimble.xcodeproj Nimble.xcodeproj.bak + trap 'mv Nimble.xcodeproj.bak Nimble.xcodeproj' EXIT + run set -o pipefail && xcodebuild -scheme "Nimble" -configuration "Debug" -sdk "watchsimulator$BUILD_WATCHOS_SDK_VERSION" -destination "name=Apple Watch Series 6 (40mm),OS=$RUNTIME_WATCHOS_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty +} + +function test_podspec { + echo "Gathering CocoaPods installation information..." + run bundle exec pod --version + echo "Linting podspec..." + run bundle exec pod lib lint Nimble.podspec --skip-import-validation --verbose +} + +function test_carthage { + echo "Gathering Carthage installation information..." + run carthage version + echo "Verifying that Carthage artifacts build" + run carthage build --no-skip-current --use-xcframeworks --verbose +} + +function test_swiftpm { + if [ -d .build ]; then + run swift package clean + fi + run swift build -Xswiftc -suppress-warnings && swift test -Xswiftc -suppress-warnings --enable-test-discovery +} + +function test_swiftpm_docker { + run docker build -t nimble-tests -f Dockerfile.test --no-cache . + run docker run -it --privileged=true nimble-tests +} + +function test() { + test_macos + test_ios + test_tvos + test_watchos + + if xcodebuild --help 2>&1 | grep xcframework > /dev/null; then + test_xcode_spm_macos + test_xcode_spm_ios + test_xcode_spm_tvos + test_xcode_spm_watchos + else + echo "Not testing with Swift Package Manager version of Xcode because it requires at least Xcode 11" + fi + + if which swift-test; then + test_swiftpm + else + echo "Not testing with the Swift Package Manager because swift-test is not installed" + fi + + if which docker; then + test_swiftpm_docker + else + echo "Not testing linux in docker container since docker is not in PATH!" + fi +} + +function clean { + run rm -rf ~/Library/Developer/Xcode/DerivedData\; true +} + +function help { + echo "Usage: $0 COMMANDS" + echo + echo "COMMANDS:" + echo " all - Runs the all tests of macos, ios and tvos" + echo " clean - Cleans the derived data directory of Xcode. Assumes default location" + echo " help - Displays this help" + echo " macos - Runs the tests on macOS 10.10 (Yosemite and newer only)" + echo " macos_xcodespm - Runs the tests on macOS using the Swift Package Manager version of Xcode" + echo " ios - Runs the tests as an iOS device" + echo " ios_xcodespm - Runs the tests as an iOS device using the Swift Package Manager version of Xcode" + echo " tvos - Runs the tests as an tvOS device" + echo " tvos_xcodespm - Runs the tests as an tvOS device using the Swift Package Manager version of Xcode" + echo " watchos - Runs the tests as an watchOS device" + echo " watchos_xcodespm - Runs the tests as an watchOS device using the Swift Package Manager version of Xcode" + echo " podspec - Runs pod lib lint against the podspec to detect breaking changes" + echo " carthage - Runs verifyies that the carthage artifacts build" + echo " swiftpm - Runs the tests built by the Swift Package Manager" + echo " swiftpm_docker - Runs the tests built by the Swift Package Manager in a docker linux container" + echo + exit 1 +} + +function main { + print_env + for arg in $@ + do + case "$arg" in + clean) clean ;; + ios) test_ios ;; + ios_xcodespm) test_xcode_spm_ios ;; + tvos) test_tvos ;; + tvos_xcodespm) test_xcode_spm_tvos ;; + watchos) test_watchos ;; + watchos_xcodespm) test_xcode_spm_watchos ;; + macos) test_macos ;; + macos_xcodespm) test_xcode_spm_macos ;; + podspec) test_podspec ;; + carthage) test_carthage ;; + test) test ;; + all) test ;; + swiftpm) test_swiftpm ;; + swiftpm_docker) test_swiftpm_docker ;; + help) help ;; + esac + done + + if [ $# -eq 0 ]; then + clean + test + fi +} + +main $@ From 1c30c4441b94aaf5c198dc297e900634f6934614 Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:23:29 -0500 Subject: [PATCH 08/15] Delete .github/workflows/swift.yml --- .github/workflows/swift.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index e3c9ae6..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Swift - -on: - push: - branches: [ master ] - paths: - - '**/*.swift' - - '**/*.yml' - -jobs: - test: - name: Run Swift Tests - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Setup Swift - uses: swift-actions/setup-swift@v1.26.0 - - - name: Run tests with Quick and Nimble - run: | - swift build - swift test --enable-test-discovery - working-directory: StringCatalogEnum From cc613b09f323706a83b574f18eccb94a013adce7 Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:29:12 -0500 Subject: [PATCH 09/15] Create swift.yml --- .github/workflows/swift.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..f057ba7 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,27 @@ +name: Swift + +on: + push: + branches: [ master ] + paths: + - '**/*.swift' + - '**/*.yml' + +jobs: + test: + name: Run Swift Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.26.0 + + - name: Make script executable + run: sh ./test.sh + + - name: Run tests + run: sh ./test.sh + working-directory: StringCatalogEnum From 4bf25537a5ceb80eaf79154f3591240b82232b77 Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:32:45 -0500 Subject: [PATCH 10/15] Delete .github/workflows/swift.yml --- .github/workflows/swift.yml | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index f057ba7..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Swift - -on: - push: - branches: [ master ] - paths: - - '**/*.swift' - - '**/*.yml' - -jobs: - test: - name: Run Swift Tests - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Setup Swift - uses: swift-actions/setup-swift@v1.26.0 - - - name: Make script executable - run: sh ./test.sh - - - name: Run tests - run: sh ./test.sh - working-directory: StringCatalogEnum From 39ed0fd8a1011bcf9ba543fd12e91819ee25e184 Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:39:52 -0500 Subject: [PATCH 11/15] Create swift.yml --- .github/workflows/swift.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..71bb9f2 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,24 @@ +name: Swift + +on: + push: + branches: [ master ] + paths: + - '**/*.swift' + - '**/*.yml' + +jobs: + test: + name: Run Swift Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.26.0 + + - name: Run custom tests + run: sh ./test.sh + working-directory: StringCatalogEnum From c84d34b6a29407b3ec8e61fa8f77a1537011823a Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:41:00 -0500 Subject: [PATCH 12/15] Delete .github/workflows/swift.yml --- .github/workflows/swift.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index 71bb9f2..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Swift - -on: - push: - branches: [ master ] - paths: - - '**/*.swift' - - '**/*.yml' - -jobs: - test: - name: Run Swift Tests - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Setup Swift - uses: swift-actions/setup-swift@v1.26.0 - - - name: Run custom tests - run: sh ./test.sh - working-directory: StringCatalogEnum From 4ee22f9677e2b33f9f9f23de73ff7ca1a8e89fbc Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:42:42 -0500 Subject: [PATCH 13/15] Create swift.yml --- .github/workflows/swift.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..6752a53 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,28 @@ +name: Swift + +on: + push: + branches: [ master ] + paths: + - '**/*.swift' + - '**/*.yml' + +jobs: + test: + name: Run Swift Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.26.0 + + - name: Make test script executable + run: chmod +x test.sh + working-directory: StringCatalogEnum + + - name: Run custom tests + run: sh ./test.sh + working-directory: StringCatalogEnum From 95b4bfa598bffd23e07f80b56ad99e01b10c43a6 Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:44:57 -0500 Subject: [PATCH 14/15] Delete .github/workflows/swift.yml --- .github/workflows/swift.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index 6752a53..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Swift - -on: - push: - branches: [ master ] - paths: - - '**/*.swift' - - '**/*.yml' - -jobs: - test: - name: Run Swift Tests - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Setup Swift - uses: swift-actions/setup-swift@v1.26.0 - - - name: Make test script executable - run: chmod +x test.sh - working-directory: StringCatalogEnum - - - name: Run custom tests - run: sh ./test.sh - working-directory: StringCatalogEnum From 9b60a81461a728758289b1527192d2dcdc9e5430 Mon Sep 17 00:00:00 2001 From: Anish Gupta <68567707+Anish0999@users.noreply.github.com> Date: Tue, 16 Jan 2024 01:51:44 -0500 Subject: [PATCH 15/15] Create swift.yml --- .github/workflows/swift.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..5b4a162 --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,26 @@ +name: Swift + +on: + push: + branches: [ master ] + paths: + - '**/*.swift' + - '**/*.yml' + +jobs: + test: + name: Run Swift Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v1.26.0 + + - name: Make test script executable + run: chmod +x ./test.sh + + - name: Run custom tests + run: ./test.sh