Skip to content

Commit

Permalink
Move from Travis to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
swarmiakimmo committed Aug 15, 2021
1 parent 7299838 commit 3f08879
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 36 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [14]
os: [ubuntu-latest]

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: node --version && npm --version
- run: npm ci
- run: npm run eslint
- run: npm test
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Git hours
[![Status badge](https://github.com/kimmobrunfeldt/git-hours/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/kimmobrunfeldt/git-hours/actions?query=branch%3Amain)

[![Build Status](https://travis-ci.org/kimmobrunfeldt/git-hours.svg)](https://travis-ci.org/kimmobrunfeldt/git-hours)
# git-hours

Estimate time spent on a git repository.

Expand All @@ -27,9 +27,6 @@ From a person working 8 hours per day, it would take more than 3 years to build

$ npm install -g git-hours

Has been tested and works with node 0.12, 4.x, 5.x, 6.x versions. **Do not use node version
below 0.12**.

**NOTE:** If for some reason `git hours` won't work, try to `npm install -g nodegit`.

`git-hours` depends on [nodegit](https://github.com/nodegit/nodegit).
Expand Down Expand Up @@ -127,9 +124,9 @@ Help
- Estimate hours work in repository since 2015-01-31

$ git hours --since 2015-01-31

- Estimate hours work in repository on the "master" branch

$ git hours --branch master

For more details, visit https://github.com/kimmobrunfeldt/git-hours
Expand Down

0 comments on commit 3f08879

Please sign in to comment.