Skip to content

Commit

Permalink
Prepare Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ApolloZhu committed Nov 5, 2020
1 parent 21c47f0 commit 6d8340c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 41 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/spm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SPM
name: Swift Package Manager

on: [push, pull_request]

Expand All @@ -10,11 +10,13 @@ jobs:
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v --enable-code-coverage
run: swift test -v --enable-code-coverage --parallel
- name: Prepare Codecov
run: xcrun llvm-cov export -format="lcov" .build/debug/swift_qrcodejsPackageTests.xctest/Contents/MacOS/swift_qrcodejsPackageTests -instr-profile .build/debug/codecov/default.profdata > codecov.lcov
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: .build/x86_64-apple-macosx/debug/codecov/swift_qrcodejs.json
file: codecov.lcov

linux:
runs-on: ubuntu-latest
Expand Down
32 changes: 8 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
.DS_Store

## Build generated
build/
Expand Down Expand Up @@ -33,39 +32,24 @@ timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
Packages/
Package.pins
.build/
.swiftpm/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Checkouts
Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

# jazzy
# Project Specific
docs/
.DS_Store
*.lcov
7 changes: 0 additions & 7 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

This file was deleted.

15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# QRCodeSwift (swift_qrcodejs)

[![CocoaPods Version](https://img.shields.io/cocoapods/v/swift_qrcodejs.svg?style=flat)](http://cocoapods.org/pods/swift_qrcodejs)
[![CocoaPods Compatible Platforms](https://img.shields.io/cocoapods/p/swift_qrcodejs.svg?style=flat)](http://cocoapods.org/pods/swift_qrcodejs)
[![Swift Package Manager Compatible](https://github.com/ApolloZhu/swift_qrcodejs/workflows/SPM/badge.svg)](https://swiftpackageindex.com/ApolloZhu/swift_qrcodejs)
[![Carthage Compatible](https://github.com/ApolloZhu/swift_qrcodejs/workflows/Carthage/badge.svg)](https://github.com/Carthage/Carthage)

[![Swift 5.0](https://img.shields.io/badge/Swift-5.0-ffac45.svg)](https://swift.org)
[![Latest Release](https://img.shields.io/github/v/release/ApolloZhu/swift_qrcodejs?sort=semver)](https://github.com/ApolloZhu/swift_qrcodejs/releases)
[![MIT License](https://img.shields.io/github/license/ApolloZhu/swift_qrcodejs.svg)](./LICENSE)
[![Code Coverage](https://codecov.io/gh/ApolloZhu/swift_qrcodejs/branch/master/graphs/badge.svg)](https://codecov.io/gh/ApolloZhu/swift_qrcodejs/branch/master)
[![Documentation](https://apollozhu.github.io/swift_qrcodejs/badge.svg)](https://apollozhu.github.io/swift_qrcodejs)
[![Swift 5.0+](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FApolloZhu%2Fswift_qrcodejs%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ApolloZhu/swift_qrcodejs)
[![Compatible with All Platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FApolloZhu%2Fswift_qrcodejs%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/ApolloZhu/swift_qrcodejs)

[![Documentation](https://apollozhu.github.io/swift_qrcodejs/badge.svg)](https://apollozhu.github.io/swift_qrcodejs)
[![Code Coverage](https://codecov.io/gh/ApolloZhu/swift_qrcodejs/branch/master/graphs/badge.svg)](https://codecov.io/gh/ApolloZhu/swift_qrcodejs/branch/master)
[![CocoaPods Compatible](https://github.com/ApolloZhu/swift_qrcodejs/workflows/CocoaPods/badge.svg)](https://swiftpackageindex.com/ApolloZhu/swift_qrcodejs)
[![Swift Package Manager Compatible](https://github.com/ApolloZhu/swift_qrcodejs/workflows/Swift%20Package%20Manager/badge.svg)](https://swiftpackageindex.com/ApolloZhu/swift_qrcodejs)
[![Carthage Compatible](https://github.com/ApolloZhu/swift_qrcodejs/workflows/Carthage/badge.svg)](https://github.com/Carthage/Carthage)

Cross-platform QRCode generator written in pure Swift, aiming to solve the awkward situation that there's no CIFilter for QRCode generation on Apple Watches.

Expand Down

0 comments on commit 6d8340c

Please sign in to comment.