chore: 🤖 0.8.0 #189
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: Swift | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: avoid PIF cache issue when running GitHub workflow # https://github.com/apple/swift-package-manager/issues/5767 | |
run: | | |
swift package dump-pif > /dev/null || true | |
xcodebuild clean -scheme SwiftPlantUML-Package -destination 'platform=macOS' > /dev/null || true | |
- name: Build and run Tests | |
run: xcodebuild -enableCodeCoverage YES -scheme SwiftPlantUML-Package -sdk macosx -destination 'platform=macOS' build test | |
- name: Upload code coverage results | |
run: bash <(curl -s https://codecov.io/bash) -t f913eaee-1802-4688-8b85-bbb28316592f | |
install-verification: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install with Make | |
run: | | |
make install | |
swiftplantuml --help | |
man swiftplantuml | col -b # this will remove formatting and control characters as here needed for text output | |
make uninstall | |
- name: Install with Homebrew | |
run: | | |
brew install MarcoEidinger/formulae/swiftplantuml | |
swiftplantuml --help | |
brew uninstall swiftplantuml |