feat: Swift 6 support (#7) #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main Branch CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Unit-Tests | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Select Xcode 16.0 | |
run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
- name: Setup Swift version | |
uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: "6.0" | |
- name: Run unit tests | |
run: | | |
swift test --enable-code-coverage | |
update_documentation: | |
name: Update documentation | |
runs-on: macos-latest | |
needs: tests | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Select Xcode 16.0 | |
run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
- name: Setup Swift version | |
uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: "6.0" | |
- name: Generate documentation | |
uses: fwcd/swift-docc-action@v1 | |
with: | |
target: SemanticVersioningKit | |
output: ./docs | |
hosting-base-path: SemanticVersioningKit | |
disable-indexing: "true" | |
transform-for-static-hosting: "true" | |
- name: Commit documentation | |
run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add ./docs/** | |
git commit -m "chore(documentation): Generate documentation" | |
git push |