Skip to content

Commit 0718e10

Browse files
authored
Merge pull request #154 from msgpack/gha
GitHub Actions
2 parents 3fd5093 + 3f428dd commit 0718e10

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
nodejs:
11+
runs-on: ubuntu-20.04
12+
13+
strategy:
14+
matrix:
15+
node-version: ['12', '14']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Setup Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- run: npm install -g npm
26+
- run: npm install -g nyc codecov
27+
- run: npm ci
28+
- run: npm run test:cover
29+
- run: codecov -f coverage/*.json
30+
31+
browser:
32+
runs-on: ubuntu-20.04
33+
strategy:
34+
matrix:
35+
browser: [ChromeHeadless, FirefoxHeadless]
36+
steps:
37+
- uses: actions/checkout@v2
38+
39+
- name: Setup Node.js ${{ matrix.node-version }}
40+
uses: actions/setup-node@v1
41+
with:
42+
node-version: '14'
43+
44+
- run: npm install -g npm
45+
- run: npm ci
46+
- run: npm run test:browser -- --browsers ${{ matrix.browser }}
47+

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# MessagePack for JavaScript/ECMA-262
22

3-
[![npm version](https://img.shields.io/npm/v/@msgpack/msgpack.svg)](https://www.npmjs.com/package/@msgpack/msgpack) [![Build Status](https://travis-ci.org/msgpack/msgpack-javascript.svg?branch=master)](https://travis-ci.org/msgpack/msgpack-javascript) [![codecov](https://codecov.io/gh/msgpack/msgpack-javascript/branch/master/graphs/badge.svg)](https://codecov.io/gh/msgpack/msgpack-javascript) [![bundlephobia](https://badgen.net/bundlephobia/minzip/@msgpack/msgpack)](https://bundlephobia.com/result?p=@msgpack/msgpack)
3+
[![npm version](https://img.shields.io/npm/v/@msgpack/msgpack.svg)](https://www.npmjs.com/package/@msgpack/msgpack) ![CI](https://github.com/msgpack/msgpack-javascript/workflows/CI/badge.svg) [![codecov](https://codecov.io/gh/msgpack/msgpack-javascript/branch/master/graphs/badge.svg)](https://codecov.io/gh/msgpack/msgpack-javascript) [![bundlephobia](https://badgen.net/bundlephobia/minzip/@msgpack/msgpack)](https://bundlephobia.com/result?p=@msgpack/msgpack)
44

5-
[![Browser Matrix powered by Sauce Labs](https://saucelabs.com/browser-matrix/gfx2019.svg)](https://saucelabs.com)
5+
<!--
6+
[![Browser Matrix powered by Sauce Labs](https://app.saucelabs.com/browser-matrix/gfx2019.svg)](https://app.saucelabs.com/u/gfx2019) -->
67

78
This is a JavaScript/ECMA-262 implementation of **MessagePack**, an efficient binary serilization format:
89

@@ -70,7 +71,6 @@ deepStrictEqual(decode(encoded), object);
7071
- [Continuous Integration](#continuous-integration)
7172
- [Release Engineering](#release-engineering)
7273
- [Updating Dependencies](#updating-dependencies)
73-
- [Big Thanks](#big-thanks)
7474
- [License](#license)
7575

7676
<!-- /TOC -->
@@ -598,11 +598,11 @@ make publish
598598
npm run update-dependencies
599599
```
600600

601-
## Big Thanks
601+
<!-- ## Big Thanks
602602
603603
Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.
604604
605-
<a href="https://saucelabs.com"><img src="./assets/SauceLabs.svg" alt="Sauce Labs" width="280"></a>
605+
<a href="https://saucelabs.com"><img src="./assets/SauceLabs.svg" alt="Sauce Labs" width="280"></a> -->
606606

607607
## License
608608

0 commit comments

Comments
 (0)