Merge pull request #8 from CruGlobal/create-version-workflow #18
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: Run Tests | |
on: | |
push: | |
branches: [ develop, main, feature/* ] | |
pull_request: | |
branches: [ develop, main, feature/* ] | |
permissions: | |
id-token: write | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run_tests_and_code_coverage: | |
name: Run Tests and Code Coverage | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Select Xcode Version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.4.0' | |
- name: Run Tests | |
run: | | |
swift test --enable-code-coverage | |
- name: Upload Xcode Code Coverage Report to CodeCov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./.build/debug/codecov/LocalizationServices.json | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: false |