Skip to content

Commit

Permalink
Add Unit Testing workflow (#2)
Browse files Browse the repository at this point in the history
* Add Unit Testing workflow

* Use Xcode 14.0.1
  • Loading branch information
liamnichols authored Jun 25, 2023
1 parent 7b75bd1 commit e214070
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Tests"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
macos:
name: macOS (Xcode ${{ matrix.xcode }})
strategy:
fail-fast: false
matrix:
xcode: ["15.0", "14.3.1", "14.0.1", "13.4.1"]
include:
- xcode: "15.0"
macos: macOS-13
- xcode: "14.3.1"
macos: macOS-13
- xcode: "14.0.1"
macos: macOS-12
- xcode: "13.4.1"
macos: macOS-12
runs-on: ${{ matrix.macos }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Run Tests
run: swift test
linux:
name: Linux (Swift ${{ matrix.swift }})
strategy:
fail-fast: false
matrix:
swift: ["5.8", "5.7", "5.6"]
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Run Tests
run: swift test

0 comments on commit e214070

Please sign in to comment.