Skip to content

Commit

Permalink
Merge pull request #5 from lithammer/github-actions
Browse files Browse the repository at this point in the history
Replace Travis CI with GitHub Actions
  • Loading branch information
lithammer committed Dec 9, 2019
2 parents bacd562 + cf5b460 commit fd94d2e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Go
on: [push]
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
go-version: ["1.12", "1.13"]
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}

- name: Checkout
uses: actions/checkout@v1

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dedent

[![Build Status](https://travis-ci.org/lithammer/dedent.svg?branch=master)](https://travis-ci.org/lithammer/dedent)
[![Build Status](https://github.com/lithammer/dedent/workflows/Go/badge.svg)](https://github.com/lithammer/dedent/actions)
[![Godoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/lithammer/dedent)

Removes common leading whitespace from multiline strings. Inspired by [`textwrap.dedent`](https://docs.python.org/3/library/textwrap.html#textwrap.dedent) in Python.
Expand Down

0 comments on commit fd94d2e

Please sign in to comment.