Skip to content

Update for 0.51.15 release #1

Update for 0.51.15 release

Update for 0.51.15 release #1

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
macos:
strategy:
fail-fast: false
matrix:
macos:
- 11
- 13
xcode:
- latest-stable
runs-on: macos-${{ matrix.macos }}
steps:
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: |
xcodebuild -project SwiftFormat.xcodeproj -scheme "SwiftFormat (Framework)" -sdk macosx clean build test -enableCodeCoverage YES -derivedDataPath Build/
cd Build/Build/ProfileData
cd $(ls -d */|head -n 1)
directory=${PWD##*/}
pathCoverage=Build/Build/ProfileData/${directory}/Coverage.profdata
cd ../../../../
xcrun llvm-cov export -format="lcov" -instr-profile $pathCoverage Build/Build/Products/Debug/SwiftFormat.framework/SwiftFormat > info.lcov
- name: Codecov
uses: codecov/codecov-action@v2
with:
# the token is optional for a public repo, but including it anyway
token: a47579fa-9a2a-4c48-b557-aa725c6b5f92
env_vars: MD_APPLE_SDK_ROOT,RUNNER_OS,RUNNER_ARCH
linux:
strategy:
fail-fast: false
matrix:
swiftver:
- swift:5.2
- swift:5.6
swiftos:
- focal
runs-on: ubuntu-latest
container:
image: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }}
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: swift test --enable-test-discovery
windows:
strategy:
fail-fast: false
matrix:
include:
- branch: development
tag: DEVELOPMENT-SNAPSHOT-2023-06-05-a
runs-on: windows-latest
name: ${{ matrix.tag }}
steps:
- uses: compnerd/gha-setup-swift@main
with:
tag: ${{ matrix.tag }}
branch: ${{ matrix.branch }}
- uses: actions/checkout@v3
- run: swift test