Skip to content

Create swift.yml

Create swift.yml #4

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swif
name: Swift
on:
pull_request:
branches: [ "master" ]
jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
swift: ["5.10.0"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Swift
run: |
sudo apt-get install -y swiftenv
swiftenv install ${{ matrix.swift }}
swiftenv global ${{ matrix.swift }}
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v