Skip to content

Fix swift test GitHub action #75

Fix swift test GitHub action

Fix swift test GitHub action #75

Workflow file for this run

name: Swift Tests
on:
push:
branches:
- 'master'
paths-ignore:
- 'BlueConnect.podspec'
- 'Banner.png'
- 'README.md'
- 'CHANGELOG.md'
- 'LICENSE'
- 'swift-generate-documentation.sh'
- 'docs/**'
- '.periphery.yml'
- '.spy.yml'
- '.swiftlint.yml'
- '.gitignore'
pull_request:
branches:
- '*'
types: [opened, reopened]
workflow_dispatch:
jobs:
tests:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-14
swift: "5.9"
- os: macos-14
swift: "5.10"
- os: macos-15
swift: "6.0"
- os: macos-15
swift: "6.1"
runs-on: ${{ matrix.os }}
steps:
- name: Setup swift version ${{ matrix.swift }}
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- name: Check swift version
run: swift --version
- name: Repository checkout
uses: actions/checkout@v4
- name: Build
run: swift build
- name: Run tests
run: swift test