Skip to content

Created SPM GitHub action #4

Created SPM GitHub action

Created SPM GitHub action #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-swift
name: Swift
on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
steps:
- name: Setup Xcode version (Latest Stable)
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: swift-actions/setup-swift@v2
- name: Get swift version
run: swift --version
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v