Skip to content

Commit

Permalink
Setup github action to test build
Browse files Browse the repository at this point in the history
This workflow should build and test on the latest Swift 5 release as well as 5.7 on both MacOS and Linux when pull requests are created targeting master or there is a push to master.
  • Loading branch information
Aloisius authored Jan 20, 2024
1 parent f83c097 commit cd0c443
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Swift

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5", "5.7"]

runs-on: ${{ matrix.os }}

steps:
- uses: swift-actions/[email protected]
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

0 comments on commit cd0c443

Please sign in to comment.