-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change ci/cd branch to main * Modify README * remove linux support on test * remove Trailing spaces * fix syntax error in workflow * upgrade fwal/[email protected] version * use SwiftEnv * work with workflow * work with workflow * sync * remove xcode version * remove xcode version * remove duplicate swift version
- Loading branch information
Showing
12 changed files
with
76 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Documentation | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
documentation: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
name: Lint | ||
|
||
on: [ push, pull_request ] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
name: Test | ||
|
||
on: [ push, pull_request ] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test on ${{ matrix.os }} and swift ${{ matrix.swift }} | ||
runs-on: ${{ matrix.os }} | ||
name: Test on Xcode ${{ matrix.xcode }} | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
os: [macOS-latest] | ||
swift: ["5.1", "5.2"] | ||
xcode: ["11.7", "11.3.1"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Swift | ||
uses: fwal/[email protected] | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
- name: Set Xcode version | ||
run: | | ||
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/ | ||
export TOOLCHAINS=swift | ||
- name: Get Swift version | ||
run: swift --version | ||
- name: Build | ||
run: swift build -v | ||
- name: Run tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import XCTest | ||
import HwpKitTests | ||
|
||
{% for type in types.classes|based:"XCTestCase" %} | ||
{% if not type.annotations.disableTests %}extension {{ type.name }} { | ||
static var allTests: [(String, ({{ type.name }}) -> () throws -> Void)] = [ | ||
{% for method in type.methods %}{% if method.parameters.count == 0 and method.shortName|hasPrefix:"test" %} ("{{ method.shortName }}", {{ method.shortName }}){{ ',' if not forloop.last }} | ||
{% endif %}{% endfor %}] | ||
} | ||
{% endif %}{% endfor %} | ||
|
||
// swiftlint:disable trailing_comma | ||
XCTMain([ | ||
{% for type in types.classes|based:"XCTestCase" %}{% if not type.annotations.disableTests %} testCase({{ type.name }}.allTests), | ||
{% endif %}{% endfor %}]) | ||
// swiftlint:enable trailing_comma |
This file was deleted.
Oops, something went wrong.