Skip to content
This repository was archived by the owner on Nov 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
swift-version: ["latest", "6.1"]
swift-version: ["latest", "6", "6.1"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: ./
id: swiftly-swift
with:
swift-version: ${{ matrix.swift-version }}
- name: test - latest
if: ${{ matrix.swift-version == 'latest' }}
- name: Verify Swift Version
shell: bash
run: swift --version | grep -q 'Swift version'
- name: test - version
if: ${{ matrix.swift-version != 'latest' }}
shell: bash
run: swift --version | grep -q 'Swift version ${{ matrix.swift-version }}'
run: |
echo "Input version: ${{ matrix.swift-version }}"
echo "Resolved version: ${{ steps.swiftly-swift.outputs.swift-version }}"
swift --version
swift --version | grep -q 'Swift version ${{ steps.swiftly-swift.outputs.swift-version }}'
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ inputs:
required: true
default: latest

outputs:
swift-version:
description: The resolved Swift version that was installed.
value: ${{ steps.resolve-version.outputs.version }}

runs:
using: composite
steps:
Expand Down