-
-
Notifications
You must be signed in to change notification settings - Fork 40
45 lines (38 loc) · 1.27 KB
/
swift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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