Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Jan 19, 2024
1 parent 11e1605 commit 8456209
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Test library
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: [macos-latest]
env:
XC_VERSION: ${{ '15.2' }}
steps:
- name: Select latest Xcode
run: "sudo xcode-select -s /Applications/Xcode_$XC_VERSION.app"
- uses: actions/checkout@v3
- name: Run Unit and UI Tests
run: swift test
lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/realm/swiftlint:latest

steps:
- uses: actions/checkout@v3
- name: SwiftLint
run: |
swiftlint --reporter github-actions-logging --strict

0 comments on commit 8456209

Please sign in to comment.