Skip to content

Commit eb3137b

Browse files
authored
Merge pull request #6 from vapor-community/swift-5-github-actions
Maintenance Update
2 parents aea4876 + 1b3446f commit eb3137b

File tree

5 files changed

+42
-31
lines changed

5 files changed

+42
-31
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on:
3+
- push
4+
jobs:
5+
xenial:
6+
container:
7+
image: vapor/swift:5.1-xenial
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- run: swift test --enable-test-discovery --enable-code-coverage
12+
bionic:
13+
container:
14+
image: vapor/swift:5.1-bionic
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Run Bionic Tests
19+
run: swift test --enable-test-discovery --enable-code-coverage
20+
- name: Setup container for codecov upload
21+
run: apt-get update && apt-get install curl
22+
- name: Process coverage file
23+
run: llvm-cov show .build/x86_64-unknown-linux/debug/SwiftMarkdownPackageTests.xctest -instr-profile=.build/x86_64-unknown-linux/debug/codecov/default.profdata > coverage.txt
24+
- name: Upload code coverage
25+
uses: codecov/codecov-action@v1
26+
with:
27+
token: ${{ secrets.CODECOV_UPLOAD_KEY }}
28+
file: coverage.txt

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
Package.pins
66
DerivedData/
77
Package.resolved
8+
.swiftpm

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

Package.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
// swift-tools-version:5.1
2+
13
import PackageDescription
24

35
let package = Package(
46
name: "SwiftMarkdown",
7+
products: [
8+
.library(name: "SwiftMarkdown", targets: ["SwiftMarkdown"]),
9+
],
510
dependencies: [
6-
.Package(url: "https://github.com/brokenhandsio/cmark-gfm.git", majorVersion: 1)
11+
.package(url: "https://github.com/brokenhandsio/cmark-gfm.git", .upToNextMajor(from: "1.0.0")),
12+
],
13+
targets: [
14+
.target(name: "SwiftMarkdown", dependencies: ["cmark"]),
15+
.testTarget(name: "SwiftMarkdownTests", dependencies: ["SwiftMarkdown"]),
716
]
817
)

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Markdown
22

3-
[![Language](https://img.shields.io/badge/Swift-4-brightgreen.svg)](http://swift.org)
4-
[![Build Status](https://travis-ci.org/vapor-community/markdown.svg?branch=master)](https://travis-ci.org/vapor-community/markdown)
3+
[![Language](https://img.shields.io/badge/Swift-5.1-brightgreen.svg)](http://swift.org)
4+
[![Build Status](https://github.com/vapor-community/markdown/workflows/CI/badge.svg?branch=master)](https://github.com/vapor-community/markdown/actions)
5+
[![Code Coverage](https://codecov.io/gh/vapor-community/markdown/branch/master/graph/badge.svg)](https://codecov.io/gh/vapor-community/markdown)
56
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/vapor-community/markdown/master/LICENSE)
67

78
Very simple Swift wrapper of GitHub's fork of [cmark](https://github.com/github/cmark). Uses a [fork](https://github.com/brokenhandsio/cmark-gfm) of cmark which has been adapted for building with SwiftPM.

0 commit comments

Comments
 (0)