Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/beta-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- "v*.*.*-beta"
jobs:
test:
beta-release:
runs-on: macos-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
test:
release:
runs-on: macos-latest
steps:
- name: Checkout
Expand Down
28 changes: 24 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,35 @@ name: Run tests
on: [push]
jobs:
test:
runs-on: macos-latest
runs-on: macos-11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Resolve Dependency
run: swift package update
- name: Generate Xcode Project
run: swift package generate-xcodeproj
- name: Test
run: swift test --enable-code-coverage
- name: Covert Code Coverage
run: xcrun llvm-cov export -format=lcov .build/debug/TypedNotificationPackageTests.xctest/Contents/MacOS/TypedNotificationPackageTests -instr-profile=.build/debug/codecov/default.profdata > lcov.info
uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: ./TypedNotification.xcodeproj
scheme: TypedNotification-Package
derived-data-path: ./output
destination: "OS=15.0,name=iPhone 13 Mini"
result-bundle-path: coverage/result.xcresult
action: clean build test
enable-code-coverage: true
build-settings: ENABLE_TESTING_SEARCH_PATHS=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: Archive Artifacts
uses: actions/upload-artifact@v2
with:
path: ./output
- name: Convert Coverage Report to JSON
run: xcrun xccov view --report --json coverage/result.xcresult > cov.json
- name: Convert JSON Coverage Report to LCOV
run: swift run xccov2lcov cov.json > coverage.lcov
- name: Upload Codecov
uses: codecov/codecov-action@v2
with:
directory: ./output/Build
verbose: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ DerivedData/
*.perspectivev3
!default.perspectivev3
xcuserdata/
output/

## Other
*.moved-aside
Expand All @@ -39,8 +40,10 @@ Packages/
Package.pins
Package.resolved
.build/
.output/
.swiftpm
/build
TypedNotification.xcodeproj

# CocoaPods
#
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Swift Package Manager](https://img.shields.io/badge/SwiftPM-Compatiable-brightgreen.svg)](https://swift.org/package-manager/)
[![release](https://img.shields.io/github/release/dbi1463/typed-notification/all.svg)](https://github.com/dbi1463/typed-notification/releases)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
[![codecov](https://codecov.io/gh/dbi1463/typed-notification/branch/develop/graph/badge.svg?token=5hEk4BfOif)](https://codecov.io/gh/dbi1463/typed-notification)

A type-safe way to receive notifications.

Expand Down