Skip to content

Commit

Permalink
ci: add Windows build (#290)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
cbaker6 authored Nov 29, 2021
1 parent 7c53ef3 commit ae47862
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ jobs:
- uses: actions/checkout@v2
- uses: sersoft-gmbh/SwiftyActions@v1
with:
release-version: 5.5.1
release-version: "5"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: swift build
- name: Test
Expand All @@ -197,7 +198,21 @@ jobs:
with:
env_vars: LINUX
fail_ci_if_error: true


windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: MaxDesiatov/swift-windows-action@v1
with:
swift-version: "5.5.1"
shell-action: swift test --enable-test-discovery --enable-code-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
env_vars: WINDOWS
fail_ci_if_error: false

docs:
needs: xcode-build-watchos
runs-on: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![parse-repository-header-sdk-swift](https://user-images.githubusercontent.com/5673677/138289926-a26ca0bd-1713-4c30-b69a-acd840ccead0.png)

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

---

Expand Down
2 changes: 1 addition & 1 deletion Tests/ParseSwiftTests/ParseOperationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,6 @@ class ParseOperationTests: XCTestCase {
XCTAssertEqual(decoded2, expected2)
XCTAssertEqual(operations2.target?.previous, [level])
}
#endif

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

func testUnchangedSet() throws {
let score = GameScore(score: 10)
Expand Down

0 comments on commit ae47862

Please sign in to comment.