Bump codecov/codecov-action from 3.1.6 to 4.0.1 #33
Workflow file for this run
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: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
permissions: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
jobs: | |
test: | |
name: Test on ${{ matrix.platform.os }} using Xcode ${{ matrix.xcode }} | |
runs-on: macos-13 | |
env: | |
xcodeproj: SimpleKeychain.xcodeproj | |
strategy: | |
matrix: | |
platform: | |
- { os: iOS, scheme: SimpleKeychain-iOS } | |
- { os: macOS, scheme: SimpleKeychain-macOS } | |
- { os: tvOS, scheme: SimpleKeychain-tvOS } | |
xcode: | |
- '15.0.1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up environment | |
uses: ./.github/actions/setup | |
with: | |
xcode: ${{ matrix.xcode }} | |
- name: Run tests | |
uses: ./.github/actions/test | |
with: | |
xcode: ${{ matrix.xcode }} | |
scheme: ${{ matrix.platform.scheme }} | |
platform: ${{ matrix.platform.os }} | |
- name: Convert coverage report | |
if: ${{ matrix.platform.os == 'iOS' }} | |
run: bundle exec slather coverage -x --scheme ${{ matrix.platform.scheme }} ${{ env.xcodeproj }} | |
- name: Upload coverage report | |
if: ${{ matrix.platform.os == 'iOS' }} | |
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 | |
test-package: | |
name: Test Swift package using Xcode ${{ matrix.xcode }} | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
xcode: | |
- '15.0.1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up environment | |
uses: ./.github/actions/setup | |
with: | |
xcode: ${{ matrix.xcode }} | |
- name: Run tests | |
run: swift test | |
pod-lint: | |
name: Lint podspec using Xcode ${{ matrix.xcode }} | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
xcode: | |
- '15.0.1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up environment | |
uses: ./.github/actions/setup | |
with: | |
xcode: ${{ matrix.xcode }} | |
- name: Run pod lib lint | |
run: bundle exec pod lib lint --allow-warnings --fail-fast | |
swiftlint: | |
name: Lint code with SwiftLint | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Run SwiftLint | |
run: swiftlint lint --reporter github-actions-logging |