Skip to content

Commit

Permalink
added test matrix for different swift versions + shiny badge
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderNey committed May 26, 2024
1 parent 7733083 commit 8980ceb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ jobs:
run: swiftformat --lint . --reporter github-actions-log

build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
swift: ["5.7","5.8", "5.9"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: swift build
- name: Run tests
run: swift test | xcpretty
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Swift](https://img.shields.io/badge/Swift-5.7_5.8_5.9-orange?style=flat-square)](https://img.shields.io/badge/Swift-5.7_5.8_5.9-Orange?style=flat-square)
[![Swift](https://img.shields.io/badge/Swift-5.7-5.9-F05138?logo=swift&logoColor=white)](https://swift.org)

[![Platforms](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_visionOS-blue?style=flat-square)](https://img.shields.io/badge/Platforms-macOS_iOS_tvOS_watchOS_vision_OS_Linux_Windows_Android-Green?style=flat-square)
[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)
![GitHub Release](https://img.shields.io/github/v/release/AlexanderNey/CircuitBreaker)
Expand Down

0 comments on commit 8980ceb

Please sign in to comment.