Skip to content

Add GitHub Action

Add GitHub Action #3

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- swift: "5.9"
os: "macos-13"
- swift: "5.8"
os: "macos-13"
- swift: "5.7"
os: "macos-12"
- swift: "5.6"
os: "macos-12"
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- name: Build
run: swift build
- name: Run tests
run: swift test