Merge pull request #31 from jaeilers/feature/ci-badge-main #39
This file contains 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: | |
run-tests: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Select Xcode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '16' | |
- name: Build and Test | |
run: xcodebuild build test -scheme JESideMenuController -destination "platform=iOS Simulator,name=${SIMULATOR_NAME}" -enableCodeCoverage YES | |
env: | |
SIMULATOR_NAME: 'iPhone SE (3rd generation)' | |
- name: Generate code coverage files for codecov | |
uses: sersoft-gmbh/swift-coverage-action@v4 | |
id: coverage-files | |
- name: Upload code coverage to codecov.io | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}} |