diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1f4efcf --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/README.md b/README.md index de837e8..d9bb7ff 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@
+ + `ets` is a command output timestamper — it prefixes each line of a command's output with a timestamp.