Skip to content

chore: Support Swift 5.9 - 5.10 #32

chore: Support Swift 5.9 - 5.10

chore: Support Swift 5.9 - 5.10 #32

Workflow file for this run

name: Tests
on:
push:
paths-ignore:
- '.github/**.md'
- 'README.md'
branches:
- main
pull_request:
paths-ignore:
- '.github/**.md'
- 'README.md'
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test Swift ${{ matrix.swift }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
swift: ["5.7", "5.8", "5.9", "5.10"]
include:
- swift: 5.7
xcode: 14.2
os: macos-13
- swift: 5.8
xcode: 14.3
os: macos-13
- swift: 5.9
xcode: 15.1
os: macos-14
- swift: 5.10
xcode: 15.3
os: macos-14
steps:
- name: Setup Xcode version
if: runner.os == 'macOS'
uses: maxim-lobanov/[email protected]
with:
xcode-version: ${{ matrix.xcode }}
- name: Get swift version
run: swift --version
- name: Checkout Package
uses: actions/checkout@v4
- name: Cache SPM
uses: actions/cache@v4
with:
path: .build
key: v2-${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
v2-${{ runner.os }}-spm-
- name: Test
run: make test-all
- name: Swift Coverage Report
continue-on-error: true
uses: maxep/[email protected]
with:
file-format: lcov
output-file: ./coverage.lcov