From 95e384a75076bc18d658b4af16459a4714e162b2 Mon Sep 17 00:00:00 2001 From: Genaro-Chris <37796152+Genaro-Chris@users.noreply.github.com> Date: Fri, 17 Nov 2023 09:04:45 +0100 Subject: [PATCH] Workflow change (#18) * Update swift.yml * Update README.md Minor typos fixed * Update swift.yml --- .github/workflows/swift.yml | 22 +++++++++++++++------- README.md | 4 ++-- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 45f735a..ede15f5 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,3 +1,6 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + name: Swift on: @@ -8,14 +11,19 @@ on: jobs: build: - - runs-on: macos-13 + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-13, ubuntu-latest] + swift: ["5.9"] steps: + - uses: swift-actions/setup-swift@v1 + with: + swift-version: ${{ matrix.swift }} - uses: actions/checkout@v3 - - name: Select Xcode version - run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer' - name: Build - run: swift build - - name: Run tests - run: swift test \ No newline at end of file + run: swift build + - name: Test + run: swift test diff --git a/README.md b/README.md index c4be53c..7e2507b 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ License ## Summary -A straightforward yet powerful Swift macro designed to simplify the unit test creation process. This tool allows you to easily parameterize your XCTest methods by automatically generating test methods based on specified arguments. Write your test method once and effortlessly generate variations with different parameters. This approach not only simplifies test maintenance but also makes identifying failing tests more effective. Inspired by JUnit parametrized tests. +A straightforward yet powerful Swift macro designed to simplify the unit test creation process. This tool allows you to easily parameterize your XCTest methods by automatically generating test methods based on specified arguments. Write your test methods once and effortlessly generate variations with different parameters. This approach not only simplifies test maintenance but also makes identifying failing tests more effective. Inspired by JUnit parametrized tests. ## Requirements @@ -162,7 +162,7 @@ Macro will generate following test method. - [x] Custom objects as input values (like structs, classes and enums) - [x] Diagnostics for error handling - [x] Expected output array of objects/values -- [x] Labels for paramter values like: `@Parametrize(input: [3.14, 2.71], labels: ["pi", "e"])` +- [x] Labels for parameter values like: `@Parametrize(input: [3.14, 2.71], labels: ["pi", "e"])` ## License XCTestParametrizedMacro is released under an MIT license. See [LICENSE](LICENSE)