Skip to content

Commit

Permalink
Create build+test.yml
Browse files Browse the repository at this point in the history
Added a build + test GitHub action for platforms macOS and ubuntu linux
  • Loading branch information
btoms20 authored May 24, 2022
1 parent e9377d9 commit 6d44cf2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build+test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build & Test (macos & linux)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-macos:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

build-linux:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: swift-actions/setup-swift@v1
- name: Build
run: swift build -v
- name: Run tests
run: swift test -c release -Xswiftc -enable-testing

0 comments on commit 6d44cf2

Please sign in to comment.