-
Notifications
You must be signed in to change notification settings - Fork 0
Error fixes specifically to do with .yml
Refer to: https://github.com/JASS-2021/smart-infrastructure/pull/4/checks?check_run_id=2242389146
Run swift test --configuration debug --enable-test-discovery
error: root manifest not found
Error: Process completed with exit code 1.
## Solution: (from https://medium.com/@edabdallamo/fixing-github-actions-swift-error-root-manifests-6337c8d1506e)
Run the following in your local repo:
swift package init ## "a manifest file exists already" -- then what exactly IS the problem??
swift package generate-xcodeproj ## started a long fetching thing on my terminal
Add the following job to .yml:
initialise_swift_pkg_manager:
name: initialise_swift_pkg_manager because GitHubActions stupid
`runs-on: macos-latest`
`steps:`
`- uses: actions/checkout@v2`
`- name: Initialise package`
`run: swift package init && swift package generate-xcodeproj`
`- name: Force Xcode 11`
`run: sudo xcode-select -switch /Applications/Xcode_11.5.app`
`- name: Build`
`run: swift build -v`
`- name: Run tests`
`run: swift test -v`
and then add that job into the needs
array of Build & Test job.