File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 name : Build
99 runs-on : macos-latest
1010 steps :
11- - name : Checkout
12- uses : actions/checkout@master
13- - name : Test
11+
12+ - name : Checkout repository and submodules
13+ uses : actions/checkout@v2
14+ with :
15+ submodules : recursive
16+
17+ - name : Build
1418 run : |
1519 swift build
Original file line number Diff line number Diff line change 1+ # Rebase PR branch when someone comments /rebase
2+ on :
3+ issue_comment :
4+ types : [created]
5+ name : Automatic Rebase
6+ jobs :
7+ rebase :
8+ name : Rebase
9+ if : contains(github.event.comment.body, '/rebase')
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@master
13+ - name : Automatic Rebase
14+ uses : cirrus-actions/rebase@master
15+ env :
16+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Unit Test
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - " **.swift"
7+ - " **.m"
8+ - " **.c"
9+ - " **.cpp"
10+ - " **.h"
11+ - " **.hpp"
12+ - " test.yml"
13+
14+ jobs :
15+ swiftpm :
16+ name : Test iOS (swiftpm)
17+ runs-on : macos-latest
18+
19+ steps :
20+
21+ - name : Checkout repository and submodules
22+ uses : actions/checkout@v2
23+ with :
24+ submodules : recursive
25+
26+ - name : iOS - Swift PM
27+ run : |
28+ set -o pipefail && \
29+ swift test --parallel | \
30+ xcpretty -c --test --color \
31+ --report junit \
32+ --output build/reports/junit.xml \
33+ --report html --output build/reports/html
34+
35+ - name : Upload Test Results
36+ uses : actions/upload-artifact@v2
37+ if : always()
38+ with :
39+ name : Test Results
40+ path : build/reports
41+
42+ - name : Upload Coverage Results
43+ uses : actions/upload-artifact@v2
44+ if : always()
45+ with :
46+ name : Coverage Results
47+ path : build/coverage
48+
49+ - name : Upload Logs
50+ uses : actions/upload-artifact@v2
51+ if : always()
52+ with :
53+ name : Logs
54+ path : build/logs
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ let package = Package(
4545 ]
4646 ) ,
4747
48+ . testTarget(
49+ name: " AltSignTests " ,
50+ dependencies: [ " AltSign " ]
51+ ) ,
52+
4853 . target(
4954 name: " CAltSign " ,
5055 dependencies: [
Original file line number Diff line number Diff line change 1+ //
2+ // AltSignTests.swift
3+ // AltSign
4+ //
5+ // Created by Joseph Mattiello on 2/24/23.
6+ // Copyright © 2023 Joseph Mattiello. All rights reserved.
7+ //
8+
9+ @testable import AltSign
10+ import XCTest
11+
12+ class AltSignTests : XCTestCase {
13+ override func setUp( ) {
14+ super. setUp ( )
15+ // Put setup code here. This method is called before the invocation of each test method in the class.
16+ }
17+
18+ override func tearDown( ) {
19+ // Put teardown code here. This method is called after the invocation of each test method in the class.
20+ super. tearDown ( )
21+ }
22+
23+ func testExample( ) {
24+ // This is an example of a functional test case.
25+ // Use XCTAssert and related functions to verify your tests produce the correct results.
26+ }
27+
28+ func testPerformanceExample( ) {
29+ // This is an example of a performance test case.
30+ measure {
31+ // Put the code you want to measure the time of here.
32+ }
33+ }
34+ }
You can’t perform that action at this time.
0 commit comments