Skip to content

Commit

Permalink
update test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jagreenwood committed Feb 19, 2025
1 parent dcdbfca commit 812dcc3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/swift-5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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 5

on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Swift
run: |
curl -L https://swiftlang.github.io/swiftly/swiftly-install.sh | bash -s -- --disable-confirmation
swiftly install 5.10.1
swiftly use 5.10.1
- name: Build
run: swift build

- name: Run tests
run: swift test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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 Ubuntu
name: Swift 6

on:
push:
Expand All @@ -17,8 +17,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: swift build

- name: Run tests
run: swift test
5 changes: 4 additions & 1 deletion .github/workflows/swift-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: swift build

- name: Run tests
run: swift test

0 comments on commit 812dcc3

Please sign in to comment.