Skip to content

Commit

Permalink
Merge pull request #11 from pacu/github-actions
Browse files Browse the repository at this point in the history
Create swift.yml
  • Loading branch information
pacu authored Nov 17, 2023
2 parents 078aa4b + 8222afb commit 4c07401
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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

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

jobs:
build:

runs-on: macos-latest

steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: "5.9"
- name: Get swift version
run: swift --version # Swift 5.9
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ playground.xcworkspace

# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
.swiftpm
.swiftpm

.build/

Expand Down

0 comments on commit 4c07401

Please sign in to comment.