Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koher committed Sep 15, 2024
1 parent 25b086f commit 8ffc6e9
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,38 @@ name: "SwiftYMD CI"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches:
- '**'
workflow_dispatch:

jobs:
mac-os:
name: macOS
runs-on: macos-11
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -c release -v
- name: Test
run: swift test -c release -v
- uses: actions/checkout@v2
- name: Set up Xcode 15
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15'
- name: Build for macOS
run: swift build -c release -v
- name: Test for macOS
run: swift test -c release -v
- name: Set up iOS Simulator
run: |
xcrun simctl boot "iPhone 15 Pro"
- name: Build for iOS
run: swift build -c release -v --destination 'platform=iOS Simulator,name=iPhone 15 Pro'
- name: Test on iOS Simulator
run: swift test -c release -v --destination 'platform=iOS Simulator,name=iPhone 15 Pro'

linux:
name: Linux
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build -c release -v
- name: Test
run: swift test -c release -v

- uses: actions/checkout@v2
- name: Build for Linux
run: swift build -c release -v
- name: Test for Linux
run: swift test -c release -v

0 comments on commit 8ffc6e9

Please sign in to comment.