Last active
August 25, 2021 21:59
-
-
Save przemek-jablonski/2b2573554e9602b20166658c591bd94d to your computer and use it in GitHub Desktop.
Default Github Action using the Swift template
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
#name of your config | |
name: Swift | |
#when to trigger the jobs | |
on: | |
push: | |
branches: [ master ] #trigger on each push to master | |
pull_request: | |
branches: [ master ] #trigger on each PR for master | |
#list of jobs to perform | |
jobs: | |
#the only job in the list, named `build` | |
build: | |
#specify OS to run the jobs on | |
runs-on: macos-latest | |
#sequential steps to run for the `build` job | |
steps: | |
# step 1, use Marketplace action called Checkout@v2, to checkout the code | |
- uses: actions/checkout@v2 #'uses' keyword launches the Marketplace action | |
# step 2, verbosely build the package using the `swift` CLI | |
- name: Build | |
run: swift build -v #'run' keyword executes the command, as if it's run in terminal | |
# step 3, verbosely test the package using the `swift` CLI | |
- name: Run tests | |
run: swift test -v #'run' keyword executes the command, as if it's run in terminal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment