Skip to content

Commit

Permalink
Merge pull request #261 from Aloisius/github-action-ci
Browse files Browse the repository at this point in the history
Setup github action to test build for pull requests/push for master
  • Loading branch information
scinfu committed Feb 12, 2024
2 parents 66779a8 + cd0c443 commit e9cec01
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 e9cec01

Please sign in to comment.