Created
December 24, 2018 00:45
-
-
Save Shashikant86/c567b9ecd70b5f31d597872abac83e98 to your computer and use it in GitHub Desktop.
Main Workflow Swift CI/CD
This file contains hidden or 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
| workflow "SwiftPM-Workflow" { | |
| on = "push" | |
| resolves = ["Swift Package Publish"] | |
| } | |
| action "Swift Package Fetch" { | |
| uses = "YOUR_PACKAGE_REPO@GIT_BRAANCH" | |
| runs = "swift package resolve" | |
| } | |
| action "Swift Package Build" { | |
| uses = "YOUR_PACKAGE_REPO@GIT_BRAANCH" | |
| needs = ["Swift Package Fetch"] | |
| runs = "swift build --build-tests" | |
| } | |
| action "Swift Package Test" { | |
| uses = "YOUR_PACKAGE_REPO@GIT_BRAANCH" | |
| needs = ["Swift Package Build"] | |
| runs = "swift test --parallel " | |
| } | |
| action "Swift Package Publish" { | |
| uses = "YOUR_PACKAGE_REPO@GIT_BRAANCH" | |
| needs = ["Swift Package Test"] | |
| runs = "git tag 0.0.1" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment