Skip to content

Commit 7898f45

Browse files
committed
Replace travis CI with GitHub action
* first add of GitHub action CI * replace travis badge with GH action's one * use coveralls github action instead of custom script
1 parent 36b2a6a commit 7898f45

File tree

4 files changed

+35
-14
lines changed

4 files changed

+35
-14
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: build
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
strategy:
16+
matrix:
17+
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Use Node.js ${{ matrix.node-version }}
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.node-version }}
28+
# Can not use cache as package-lock.json is not commited in Git
29+
# cache: 'npm'
30+
- run: npm install
31+
- run: npm run test-ci
32+
- name: Coveralls
33+
uses: coverallsapp/github-action@v2

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yazl
22

3-
[![Build Status](https://travis-ci.com/thejoshwolfe/yazl.svg?branch=master)](https://travis-ci.com/thejoshwolfe/yazl)
3+
[![Build Status](https://github.com/thejoshwolfe/yazl/actions/workflows/build.yml/badge.svg)](https://github.com/thejoshwolfe/yazl/actions/workflows/build.yml)
44
[![Coverage Status](https://coveralls.io/repos/github/thejoshwolfe/yazl/badge.svg?branch=master)](https://coveralls.io/github/thejoshwolfe/yazl?branch=master)
55

66
yet another zip library for node. For unzipping, see

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"test": "node test/test.js",
88
"test-cov": "istanbul cover test/test.js",
9-
"test-travis": "istanbul cover --report lcovonly test/test.js"
9+
"test-ci": "istanbul cover --report lcovonly test/test.js"
1010
},
1111
"repository": {
1212
"type": "git",

0 commit comments

Comments
 (0)