Skip to content

Commit

Permalink
Use GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed Feb 8, 2022
1 parent 481ac05 commit 1fa6766
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 16
- 14
- 12
- 10
- 8
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- run: ./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v1
with:
file: coverage.lcov
name: ${{ matrix.node-version }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@types/delay": "^2.0.1",
"@types/node": "^10.5.8",
"ava": "^0.25.0",
"codecov": "^3.0.4",
"del-cli": "^1.1.0",
"delay": "^3.0.0",
"nyc": "^12.0.2",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# expiry-map

[![Build Status](https://travis-ci.org/SamVerschueren/expiry-map.svg?branch=master)](https://travis-ci.org/SamVerschueren/expiry-map) [![Coverage Status](https://codecov.io/gh/SamVerschueren/expiry-map/branch/master/graph/badge.svg)](https://codecov.io/gh/SamVerschueren/expiry-map)
![CI](https://github.com/SamVerschueren/expiry-map/workflows/CI/badge.svg) [![codedov](https://codecov.io/gh/SamVerschueren/expiry-map/branch/master/graph/badge.svg)](https://codecov.io/gh/SamVerschueren/expiry-map)

> A [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) implementation with expirable items
Expand Down

0 comments on commit 1fa6766

Please sign in to comment.