File tree Expand file tree Collapse file tree 2 files changed +40
-3
lines changed
Sources/DangerSwiftPeriphery Expand file tree Collapse file tree 2 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 7
7
- main
8
8
9
9
jobs :
10
- build :
10
+ macOS :
11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
20
20
- xcode : " 13.2.1"
21
21
macos : macos-12
22
22
runs-on : ${{ matrix.macos }}
23
- env :
24
- GITHUB_TOKEN : ${{ secrets.DANGER_GITHUB_API_TOKEN }}
23
+ name : macOS
25
24
steps :
26
25
- name : Checkout
27
26
uses : actions/checkout@v2
44
43
${{ runner.os }}-dependencies-${{ matrix.xcode }}-
45
44
- name : Test
46
45
run : swift test
46
+ linux :
47
+ strategy :
48
+ fail-fast : false
49
+ matrix :
50
+ swift : ["5.6", "5.5"]
51
+ include :
52
+ - swift : " 5.6"
53
+ container : " swift:5.6"
54
+ cache-version : 2
55
+ - swift : " 5.5"
56
+ container : " swift:5.5"
57
+ cache-version : 2
58
+ runs-on : ubuntu-latest
59
+ container : ${{ matrix.container }}
60
+ name : Linux
61
+ steps :
62
+ - name : Checkout
63
+ uses : actions/checkout@v2
64
+ - name : Get Swift Version
65
+ id : get-swift-version
66
+ run : |
67
+ echo "::set-output name=version::$(swift -version | head -n 1 | sed s/,// )"
68
+ shell : bash
69
+ - name : Cache dependencies
70
+ uses : actions/cache@v2
71
+ with :
72
+ path : |
73
+ .build/artifacts
74
+ .build/checkouts
75
+ .build/repositories
76
+ key : ${{ matrix.cache-version }}-${{ runner.os }}-${{ steps.get-swift-version.outputs.version }}}-spm-deps-${{ hashFiles('Package.resolved') }}
77
+ restore-keys : |
78
+ ${{ matrix.cache-version }}-${{ runner.os }}-${{ steps.get-swift-version.outputs.version }}-spm-deps-
79
+ - name : Test
80
+ run : swift test
47
81
Original file line number Diff line number Diff line change 6
6
//
7
7
8
8
import Foundation
9
+ #if canImport(FoundationXML)
10
+ import FoundationXML
11
+ #endif
9
12
10
13
protocol CheckstyleOutputParsable {
11
14
func parse( xml: String ) throws -> [ Violation ]
You can’t perform that action at this time.
0 commit comments