Skip to content

Commit

Permalink
chore: switching from travis to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheidegger committed Mar 22, 2022
1 parent a742b1e commit 4a72106
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['lts', 17, 16, 14, 12, 10, 8, 6, 4]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm -v
- run: npm i
- run: npm run lint
if: matrix.node-version == 16
- run: npm run unit
- run: npm run bench
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
npm install protocol-buffers
```

[![build status](https://travis-ci.org/mafintosh/protocol-buffers.svg?branch=master)](https://travis-ci.org/mafintosh/protocol-buffers)
[![build status](https://github.com/mafintosh/protocol-buffers/actions/workflows/test.yml/badge.svg)](https://github.com/mafintosh/protocol-buffers/actions/workflows/test.yml)
![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)

## Usage
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"protocol-buffers": "./bin.js"
},
"scripts": {
"test": "standard && npm run test-generated && npm run test-compiled",
"lint": "standard",
"test": "npm run lint && npm run unit",
"unit": "npm run test-generated && npm run test-compiled",
"test-generated": "tape test/*.js",
"test-compiled": "./bin.js test/test.proto -o test/helpers/compiled.js && COMPILED=true tape test/*.js",
"bench": "node bench"
Expand Down

0 comments on commit 4a72106

Please sign in to comment.