Skip to content

Commit

Permalink
Merge pull request #6 from vapor-community/swift-5-github-actions
Browse files Browse the repository at this point in the history
Maintenance Update
  • Loading branch information
0xTim authored Dec 2, 2019
2 parents aea4876 + 1b3446f commit eb3137b
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 31 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
- push
jobs:
xenial:
container:
image: vapor/swift:5.1-xenial
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: swift test --enable-test-discovery --enable-code-coverage
bionic:
container:
image: vapor/swift:5.1-bionic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Bionic Tests
run: swift test --enable-test-discovery --enable-code-coverage
- name: Setup container for codecov upload
run: apt-get update && apt-get install curl
- name: Process coverage file
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
- name: Upload code coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_UPLOAD_KEY }}
file: coverage.txt
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
Package.pins
DerivedData/
Package.resolved
.swiftpm
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

11 changes: 10 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
// swift-tools-version:5.1

import PackageDescription

let package = Package(
name: "SwiftMarkdown",
products: [
.library(name: "SwiftMarkdown", targets: ["SwiftMarkdown"]),
],
dependencies: [
.Package(url: "https://github.com/brokenhandsio/cmark-gfm.git", majorVersion: 1)
.package(url: "https://github.com/brokenhandsio/cmark-gfm.git", .upToNextMajor(from: "1.0.0")),
],
targets: [
.target(name: "SwiftMarkdown", dependencies: ["cmark"]),
.testTarget(name: "SwiftMarkdownTests", dependencies: ["SwiftMarkdown"]),
]
)
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Markdown

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

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.
Expand Down

0 comments on commit eb3137b

Please sign in to comment.