Sync main with develop #2
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode.app | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Install Dependencies | |
| run: make install-tools | |
| - name: SwiftLint | |
| run: make lint | |
| - name: Build | |
| run: make build | |
| - name: Run tests | |
| run: make test | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v3 | |
| if: failure() | |
| with: | |
| name: test-results | |
| path: .build/debug/releaseTest.xctest/Contents/ | |
| retention-days: 7 |