Skip to content

Update Swiftformat workflows to pass version #527

Update Swiftformat workflows to pass version

Update Swiftformat workflows to pass version #527

Workflow file for this run

name: Test latest OSs
on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install xcbeautify
uses: Cyberbeni/install-swift-tool@v2
with:
url: https://github.com/cpisciotta/xcbeautify
- name: Test
shell: bash
run: |
set -o pipefail
swift test --enable-code-coverage --filter TypedNotificationCenterTests 2>&1 | xcbeautify
- name: Codecov
shell: bash
run: |
"$(dirname "$(realpath "$(which swift)")")/llvm-cov" export -format="lcov" .build/debug/TypedNotificationCenterPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
bash <(curl -s https://codecov.io/bash) -J '^TypedNotificationCenter$' -n 'Linux' -F 'Linux'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test-performance:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install xcbeautify
uses: Cyberbeni/install-swift-tool@v2
with:
url: https://github.com/cpisciotta/xcbeautify
- name: Test
shell: bash
run: |
set -o pipefail
swift test --configuration release --filter TypedNotificationCenterPerformanceTests 2>&1 | xcbeautify
test-darwin-unit:
strategy:
matrix:
os: [macOS, iOS, tvOS]
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: fastlane scan --scheme "TypedNotificationCenter ${{ matrix.os }}" --disable_slide_to_type false
- name: Codecov
run: bash <(curl -s https://codecov.io/bash) -J '^TypedNotificationCenter$' -n '${{ matrix.os }}' -F '${{ matrix.os }}'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test-darwin-ui:
strategy:
matrix:
os: [iOS]
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: fastlane scan --scheme "TNC UI Test Host ${{ matrix.os }}"
- name: Codecov
run: bash <(curl -s https://codecov.io/bash) -J '^TypedNotificationCenter$' -n '${{ matrix.os }}-ui' -F '${{ matrix.os }}'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}