Skip to content

Commit

Permalink
[CI] Verify correct version was installed
Browse files Browse the repository at this point in the history
  • Loading branch information
slashmo committed Jan 29, 2022
1 parent 0b820a2 commit dbd2d47
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ jobs:
matrix:
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]
swift: [5.5, swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a]
include:
- swift: 5.5
expectedVersionString: "Swift version 5.5 (swift-5.5-RELEASE)"
- swift: swift-DEVELOPMENT-SNAPSHOT-2022-01-09-a
expectedVersionString: "Swift version 5.6-dev (LLVM 7b20e61dd04138a, Swift 9438cf6b2e83c5f)"
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -21,5 +26,7 @@ jobs:
with:
version: ${{ matrix.swift }}

- name: Print Swift Version
run: swift --version
- name: Check Swift Version
run: |
set -e
swift --version | grep "${{ matrix.expectedVersionString }}"

0 comments on commit dbd2d47

Please sign in to comment.