Skip to content

Commit

Permalink
tests: test on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zmwangx committed Jun 16, 2020
1 parent a981020 commit c2e8aa2
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 6'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint on .
uses: golangci/golangci-lint-action@v1
with:
version: v1.27
args: -E gofmt
- name: golangci-lint on fixtures/basic
uses: golangci/golangci-lint-action@v1
with:
version: v1.27
working-directory: fixtures/basic
args: -E gofmt
- name: golangci-lint on fixtures/detect_tty
uses: golangci/golangci-lint-action@v1
with:
version: v1.27
working-directory: fixtures/detect_tty
args: -E gofmt
- name: golangci-lint on fixtures/signals
uses: golangci/golangci-lint-action@v1
with:
version: v1.27
working-directory: fixtures/signals
args: -E gofmt
- name: golangci-lint on fixtures/timed
uses: golangci/golangci-lint-action@v1
with:
version: v1.27
working-directory: fixtures/timed
args: -E gofmt

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ^1.14
- name: Test
run: |
make test
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<h1 align="center"><img src="assets/logo.svg" height="50" alt="ets" /></h1>

<p align="center">
<a href="https://github.com/zmwangx/ets/releases"><img src="https://img.shields.io/github/v/release/zmwangx/ets" alt="GitHub release" /></a>
<a href="https://github.com/zmwangx/ets/actions"><img src="https://github.com/zmwangx/ets/workflows/test/badge.svg?branch=master" alt="Build status" /></a>
</p>

<p align="center"><img src="assets/animation.svg" alt="ets" /></p>

`ets` is a command output timestamper — it prefixes each line of a command's output with a timestamp.
Expand Down

0 comments on commit c2e8aa2

Please sign in to comment.