Skip to content

Commit 003bd57

Browse files
committed
Migrate to GitHub Actions
1 parent 51ecbc8 commit 003bd57

File tree

3 files changed

+49
-32
lines changed

3 files changed

+49
-32
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Node.js ${{ matrix.node-version }}
8+
runs-on: macos-latest
9+
strategy:
10+
matrix:
11+
node-version:
12+
- "*"
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- uses: actions/cache@v2
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-node-
24+
- run: npm ci
25+
- run: npm test
26+
- uses: codecov/codecov-action@v1
27+
with:
28+
name: Node.js ${{ matrix.node-version }}

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22

33
[![NPM version][npm-image]][npm-url]
44
[![NPM downloads][downloads-image]][downloads-url]
5-
[![Build status][travis-image]][travis-url]
6-
[![Test coverage][coveralls-image]][coveralls-url]
5+
[![Build status][build-image]][build-url]
6+
[![Build coverage][coverage-image]][coverage-url]
77

88
JSON map of programming languages to meta data. Converted from GitHub's [Linguist YAML file](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml).
99

1010
**Useful Properties:**
1111

12-
* `type` - Either data, programming, markup, or undefined
13-
* `aliases` - An array of additional lowercased aliases
14-
* `filenames` - An array of filenames associated with the language
15-
* `extensions` - An array of associated extensions
16-
* `interpreters` - An array of associated interpreters
12+
- `type` - Either data, programming, markup, or undefined
13+
- `aliases` - An array of additional lowercased aliases
14+
- `filenames` - An array of filenames associated with the language
15+
- `extensions` - An array of associated extensions
16+
- `interpreters` - An array of associated interpreters
1717

1818
**GitHub Specific Properties:**
1919

20-
* `wrap` - Boolean flag to enable line wrapping
21-
* `color` - CSS hex color to represent the language
22-
* `group` - Associated language grouping
23-
* `aceMode` - A string name of the ace mode
24-
* `searchable` - Boolean flag to enable searching
25-
* `searchTerm` - Deprecated: Some languages maybe indexed under a different alias
20+
- `wrap` - Boolean flag to enable line wrapping
21+
- `color` - CSS hex color to represent the language
22+
- `group` - Associated language grouping
23+
- `aceMode` - A string name of the ace mode
24+
- `searchable` - Boolean flag to enable searching
25+
- `searchTerm` - Deprecated: Some languages maybe indexed under a different alias
2626

2727
## Installation
2828

@@ -33,9 +33,9 @@ npm install language-map --save
3333
## Usage
3434

3535
```javascript
36-
var map = require('language-map')
36+
var map = require("language-map");
3737

38-
console.log(map["JavaScript"])
38+
console.log(map["JavaScript"]);
3939
//=> { type: 'programming', aceMode: 'javascript', color: '#f15501', ... }
4040
```
4141

@@ -68,11 +68,11 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
6868
OTHER DEALINGS IN THE SOFTWARE.
6969
```
7070

71-
[npm-image]: https://img.shields.io/npm/v/language-map.svg?style=flat
71+
[npm-image]: https://img.shields.io/npm/v/language-map
7272
[npm-url]: https://npmjs.org/package/language-map
73-
[downloads-image]: https://img.shields.io/npm/dm/language-map.svg?style=flat
73+
[downloads-image]: https://img.shields.io/npm/dm/language-map
7474
[downloads-url]: https://npmjs.org/package/language-map
75-
[travis-image]: https://img.shields.io/travis/blakeembrey/language-map.svg?style=flat
76-
[travis-url]: https://travis-ci.org/blakeembrey/language-map
77-
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/language-map.svg?style=flat
78-
[coveralls-url]: https://coveralls.io/r/blakeembrey/language-map?branch=master
75+
[build-image]: https://img.shields.io/github/workflow/status/blakeembrey/language-map/CI/main
76+
[build-url]: https://github.com/blakeembrey/language-map/actions/workflows/ci.yml?query=branch%3Amain
77+
[coverage-image]: https://img.shields.io/codecov/c/gh/blakeembrey/language-map
78+
[coverage-url]: https://codecov.io/gh/blakeembrey/language-map

0 commit comments

Comments
 (0)