Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardiman committed Jan 19, 2024
1 parent d0a1dfe commit 844e23e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on: [push]

jobs:
test:
name: Test on destination ${{ matrix.configurations.destination }}
runs-on: macOS-13
strategy:
matrix:
configurations:
- destination: "platform=macOS"
scheme: "Fetch-macOS"
platform: "macOS"

steps:
- name: Xcode Select
run: sudo xcode-select -s /Applications/Xcode_15.0.1.app

- name: Checkout
uses: actions/checkout@v4

- name: Bundler
run: bundle install

- name: Generate xcode project for code coverage
run: swift package generate-xcodeproj --enable-code-coverage

- name: Run tests on ${{ matrix.configurations.destination }}
run: xcodebuild -scheme Config-Package test |
xcpretty --report html --output test_output/results.html --report junit --output test_output/unit-tests/results.xml

- name: Post Coverage
run: bundle exec slather

0 comments on commit 844e23e

Please sign in to comment.