-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from tbartelmess/github-action
Added GitHub action to run tests
- Loading branch information
Showing
3 changed files
with
39 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Run Tests on Linux" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: fwal/[email protected] | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Show Swift Version | ||
run: swift --version | ||
- name: Build | ||
run: swift build | ||
- name: Test | ||
run: swift test |
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,9 +1,20 @@ | ||
#if !canImport(ObjectiveC) | ||
import XCTest | ||
|
||
#if !canImport(ObjectiveC) | ||
public func allTests() -> [XCTestCaseEntry] { | ||
extension Swift_CRC32Tests { | ||
// DO NOT MODIFY: This is autogenerated, use: | ||
// `swift test --generate-linuxmain` | ||
// to regenerate. | ||
static let __allTests__Swift_CRC32Tests = [ | ||
("test192BitValue", test192BitValue), | ||
("testSimpleData", testSimpleData), | ||
("testSimpleNumbersCRC32", testSimpleNumbersCRC32), | ||
] | ||
} | ||
|
||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(Swift_CRC32Tests.allTests), | ||
testCase(Swift_CRC32Tests.__allTests__Swift_CRC32Tests), | ||
] | ||
} | ||
#endif |
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,7 +1,8 @@ | ||
import XCTest | ||
|
||
import Swift_CRC32Tests | ||
import CRC32CTests | ||
|
||
var tests = [XCTestCaseEntry]() | ||
tests += Swift_CRC32Tests.allTests() | ||
tests += CRC32CTests.__allTests() | ||
|
||
XCTMain(tests) |