Skip to content

Commit

Permalink
Dev: Use Github Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Apr 30, 2023
1 parent ba69fd2 commit 653b5fb
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 469 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: "increase"
commit-message:
prefix: "Deps"
prefix-development: "Dev"
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test

on:
push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run lint

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20, 19, 18, 16]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i -g npm@latest
- run: npm ci
- run: npm run test-main

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run cover-main
- name: Send report to Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 0 additions & 24 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 @@ -5,7 +5,7 @@
## Current status

[![NPM version](https://img.shields.io/npm/v/yauzl-promise.svg)](https://www.npmjs.com/package/yauzl-promise)
[![Build Status](https://img.shields.io/travis/overlookmotel/yauzl-promise/master.svg)](http://travis-ci.org/overlookmotel/yauzl-promise)
[![Build Status](https://img.shields.io/github/actions/workflow/status/overlookmotel/yauzl-promise/test.yml?branch=master)](https://github.com/overlookmotel/yauzl-promise/actions)
[![Dependency Status](https://img.shields.io/david/overlookmotel/yauzl-promise.svg)](https://david-dm.org/overlookmotel/yauzl-promise)
[![Dev dependency Status](https://img.shields.io/david/dev/overlookmotel/yauzl-promise.svg)](https://david-dm.org/overlookmotel/yauzl-promise)
[![Greenkeeper badge](https://badges.greenkeeper.io/overlookmotel/yauzl-promise.svg)](https://greenkeeper.io/)
Expand Down
Loading

0 comments on commit 653b5fb

Please sign in to comment.