Skip to content

Merge pull request #31 from jaeilers/feature/ci-badge-main #39

Merge pull request #31 from jaeilers/feature/ci-badge-main

Merge pull request #31 from jaeilers/feature/ci-badge-main #39

Workflow file for this run

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), ',')}}