Skip to content

Commit

Permalink
Replace travis CI with GitHub action (n-peugnet#1)
Browse files Browse the repository at this point in the history
* first add of GitHub action CI
* replace travis badge with GH action's one
* use coveralls github action instead of custom script
  • Loading branch information
n-peugnet committed Oct 4, 2023
1 parent 96f0eb5 commit a1bdc98
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 14 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

strategy:
matrix:
node-version: [10, 12, 14, 16, 18, 20]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# Can not use cache as package-lock.json is not commited in Git
# cache: 'npm'
- run: npm install
- run: npm run test-ci
- name: Coveralls
uses: coverallsapp/github-action@v2
12 changes: 0 additions & 12 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
@@ -1,6 +1,6 @@
# yauzl

[![Build Status](https://travis-ci.org/thejoshwolfe/yauzl.svg?branch=master)](https://travis-ci.org/thejoshwolfe/yauzl)
[![Build Status](https://github.com/thejoshwolfe/yauzl/actions/workflows/build.yml/badge.svg)](https://github.com/thejoshwolfe/yauzl/actions/workflows/build.yml)
[![Coverage Status](https://img.shields.io/coveralls/thejoshwolfe/yauzl.svg)](https://coveralls.io/r/thejoshwolfe/yauzl)

yet another unzip library for node. For zipping, see
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "node test/test.js",
"test-cov": "istanbul cover test/test.js",
"test-travis": "istanbul cover --report lcovonly test/test.js"
"test-ci": "istanbul cover --report lcovonly test/test.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a1bdc98

Please sign in to comment.