mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
build: Move CI to GitHub Actions (#1354)
This commit is contained in:
parent
5f2f62bcfd
commit
2ac09c73a8
35
.github/workflows/test.yml
vendored
Normal file
35
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: "Test"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
jobs:
|
||||
test:
|
||||
name: "Test"
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node_version: ["4", "4.3.2", "6", "8", "10", "12"]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: "Install dependencies"
|
||||
run: npm install
|
||||
- name: "Run tests"
|
||||
run: npm test
|
||||
bench:
|
||||
name: "Bench"
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "12"
|
||||
- name: "Install dependencies"
|
||||
run: npm install
|
||||
- name: "Run benchmark"
|
||||
run: npm run bench
|
||||
15
.travis.yml
15
.travis.yml
@ -1,15 +0,0 @@
|
||||
dist: trusty
|
||||
language: node_js
|
||||
node_js:
|
||||
- node
|
||||
- lts/*
|
||||
- 12
|
||||
- 11
|
||||
- 10
|
||||
- 8
|
||||
- 6
|
||||
- 4.3.2
|
||||
- 4
|
||||
branches:
|
||||
only: master
|
||||
script: npm test && npm run bench
|
||||
Loading…
x
Reference in New Issue
Block a user