Skip to content

Commit

Permalink
fix: correct to latest iOS and swiftlint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
drmohundro committed Jan 6, 2022
1 parent c63ad73 commit 8b594e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Main

on:
[push, pull_request]
on: [push, pull_request]

jobs:
mac-test:
Expand All @@ -13,12 +12,12 @@ jobs:
uses: actions/checkout@master
- name: Build and test
env:
WORKSPACE: "-workspace SWXMLHash.xcworkspace"
ACTION: "build-for-testing test-without-building"
WORKSPACE: "-workspace SWXMLHash.xcworkspace"
ACTION: "build-for-testing test-without-building"
run: |
set -o pipefail
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash OSX" | xcpretty
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash iOS" -sdk iphonesimulator -destination "OS=14.4,name=iPhone 12" | xcpretty
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash iOS" -sdk iphonesimulator -destination "OS=15.0,name=iPhone 12" | xcpretty
xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash tvOS" -sdk appletvsimulator -destination "name=Apple TV" | xcpretty
xcodebuild build $WORKSPACE -scheme "SWXMLHash watchOS" -sdk watchsimulator | xcpretty
bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}}
Expand All @@ -34,5 +33,3 @@ jobs:
run: |
eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
swift test
1 change: 0 additions & 1 deletion Tests/SWXMLHashTests/XMLParsingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class XMLParsingTests: XCTestCase {
XCTAssertEqual(xml!["root"]["catalog"]["book"][1].element?.attribute(by: "id")?.text, "bk102")
}

// swiftlint:disable identifier_name
func testShouldBeAbleToParseAttributesWithStringRawRepresentable() {
enum Keys: String {
case root; case catalog; case book; case id
Expand Down

0 comments on commit 8b594e0

Please sign in to comment.