mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 08:27:18 -04:00
Switch from TravisCI to GitHub Actions (#49)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
name: build
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.11.x, 1.12.x, 1.13.x]
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
env:
|
||||
GO111MODULE: "on"
|
||||
steps:
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Download Go modules
|
||||
run: go mod download
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
if: matrix.platform != 'windows-latest'
|
||||
|
||||
- name: Coverage
|
||||
env:
|
||||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
go test -race -covermode atomic -coverprofile=profile.cov ./...
|
||||
GO111MODULE=off go get github.com/mattn/goveralls
|
||||
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
|
||||
if: matrix.go-version == '1.13.x' && matrix.platform == 'ubuntu-latest'
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
language: go
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
go:
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- 1.11.x
|
||||
- 1.12.x
|
||||
- 1.13.x
|
||||
- tip
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- go: tip
|
||||
|
||||
before_install:
|
||||
- if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then go get github.com/axw/gocov/gocov github.com/modocache/gover github.com/mattn/goveralls; fi
|
||||
|
||||
script:
|
||||
- go test -v -tags ci ./...
|
||||
- if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: change
|
||||
on_failure: always
|
||||
@@ -1,6 +1,6 @@
|
||||
# Glamour
|
||||
|
||||
[](https://godoc.org/github.com/charmbracelet/glamour) [](https://travis-ci.org/charmbracelet/glamour) [](https://coveralls.io/github/charmbracelet/glamour?branch=master) [](http://goreportcard.com/report/charmbracelet/glamour)
|
||||
[](https://godoc.org/github.com/charmbracelet/glamour) [](https://github.com/charmbracelet/glamour/actions) [](https://coveralls.io/github/charmbracelet/glamour?branch=master) [](http://goreportcard.com/report/charmbracelet/glamour)
|
||||
|
||||
Write gorgeous command-line tools with *glamour*!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user