Updated run commands to work with Swift 5.10 #191
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TUSKit CI | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
name: Swift ${{ matrix.swift }} on ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["macos-latest"] | |
swift: ["5.10"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Extract Branch Name | |
run: echo "BRANCH=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV | |
- uses: swift-actions/setup-swift@v2 | |
with: | |
swift-version: ${{ matrix.swift }} | |
- name: Get swift version | |
run: swift --version | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: swift build | |
- name: Run tests | |
run: swift test |