things #7
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: Unit Test | |
| on: | |
| pull_request: | |
| paths: | |
| - "**.swift" | |
| - "**.m" | |
| - "**.c" | |
| - "**.cpp" | |
| - "**.h" | |
| - "**.hpp" | |
| - "test.yml" | |
| jobs: | |
| swiftpm: | |
| name: Test iOS (swiftpm) | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository and submodules | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - name: iOS - Swift PM | |
| run: | | |
| set -o pipefail && \ | |
| swift test --parallel | \ | |
| xcpretty -c --test --color \ | |
| --report junit \ | |
| --output build/reports/junit.xml \ | |
| --report html --output build/reports/html | |
| - name: Upload Test Results | |
| uses: actions/upload-artifact@v2 | |
| if: always() | |
| with: | |
| name: Test Results | |
| path: build/reports | |
| - name: Upload Coverage Results | |
| uses: actions/upload-artifact@v2 | |
| if: always() | |
| with: | |
| name: Coverage Results | |
| path: build/coverage | |
| - name: Upload Logs | |
| uses: actions/upload-artifact@v2 | |
| if: always() | |
| with: | |
| name: Logs | |
| path: build/logs |