Update CI #41
Workflow file for this run
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| swift_version: | |
| - "6.0" | |
| - "6.1" | |
| - "6.2" | |
| runs-on: macos-latest | |
| steps: | |
| - name: Install Swiftly | |
| run: | | |
| curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg | |
| installer -pkg swiftly.pkg -target CurrentUserHomeDirectory | |
| ~/.swiftly/bin/swiftly init --quiet-shell-followup --skip-install | |
| . "${SWIFTLY_HOME_DIR:-$HOME/.swiftly}/env.sh" | |
| hash -r | |
| - name: Add Swiftly to PATH | |
| run: echo "${HOME}/.swiftly/bin" >> "${GITHUB_PATH}" | |
| - name: Install Swift | |
| run: ~/.swiftly/bin/swiftly install --use ${{ matrix.swift_version }} | |
| - name: Get swift version | |
| run: swift --version | |
| - uses: actions/checkout@v4 | |
| - name: Run tests | |
| run: swift test |