Skip to content

Commit ae47862

Browse files
authored
ci: add Windows build (#290)
* ci: add windows build * Build latest Swift * add codecov to windows * Don't run test on Windows * fix linux build * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml
1 parent 7c53ef3 commit ae47862

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ jobs:
184184
- uses: actions/checkout@v2
185185
- uses: sersoft-gmbh/SwiftyActions@v1
186186
with:
187-
release-version: 5.5.1
187+
release-version: "5"
188+
github-token: ${{ secrets.GITHUB_TOKEN }}
188189
- name: Build
189190
run: swift build
190191
- name: Test
@@ -197,7 +198,21 @@ jobs:
197198
with:
198199
env_vars: LINUX
199200
fail_ci_if_error: true
200-
201+
202+
windows:
203+
runs-on: windows-2019
204+
steps:
205+
- uses: actions/checkout@v2
206+
- uses: MaxDesiatov/swift-windows-action@v1
207+
with:
208+
swift-version: "5.5.1"
209+
shell-action: swift test --enable-test-discovery --enable-code-coverage
210+
- name: Upload coverage to Codecov
211+
uses: codecov/codecov-action@v2
212+
with:
213+
env_vars: WINDOWS
214+
fail_ci_if_error: false
215+
201216
docs:
202217
needs: xcode-build-watchos
203218
runs-on: macos-latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![parse-repository-header-sdk-swift](https://user-images.githubusercontent.com/5673677/138289926-a26ca0bd-1713-4c30-b69a-acd840ccead0.png)
22

3-
<h3 align="center">iOS · macOS · watchOS · tvOS · Linux · Windows</h3>
3+
<h3 align="center">iOS · macOS · watchOS · tvOS · Linux · Android · Windows</h3>
44

55
---
66

Tests/ParseSwiftTests/ParseOperationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ class ParseOperationTests: XCTestCase {
513513
XCTAssertEqual(decoded2, expected2)
514514
XCTAssertEqual(operations2.target?.previous, [level])
515515
}
516-
#endif
517516

518517
func testObjectIdSet() throws {
519518
var score = GameScore()
@@ -537,6 +536,7 @@ class ParseOperationTests: XCTestCase {
537536
XCTAssertEqual(decoded2, expected2)
538537
XCTAssertEqual(operations2.target?.previous, [level])
539538
}
539+
#endif
540540

541541
func testUnchangedSet() throws {
542542
let score = GameScore(score: 10)

0 commit comments

Comments
 (0)