Echo Swift version before testing and building. #4
Workflow file for this run
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: Continuous Integration | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build-release: | |
strategy: | |
matrix: | |
# https://github.com/actions/virtual-environments | |
os: [macos-12, ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Swift version | |
run: swift --version | |
- name: Check a Release build | |
run: swift build --disable-automatic-resolution -c release | |
run-tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: fwal/setup-swift@v2 | |
- name: Check Swift version | |
run: swift --version | |
- name: Run tests | |
run: swift test |