Skip to content

Commit 5a52533

Browse files
committed
move build from travis-ci to github actions
1 parent 8deaf0b commit 5a52533

File tree

3 files changed

+42
-20
lines changed

3 files changed

+42
-20
lines changed

.github/workflows/unit-tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Unit Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [12.x, 14.x, 16.x, 17.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
25+
- name: Cache dependencies
26+
if: ${{ !env.ACT }}
27+
uses: actions/cache@v2
28+
with:
29+
path: ./node_modules
30+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-node-
33+
34+
- name: Install dependencies
35+
run: npm ci --ignore-scripts
36+
37+
- name: Install winston@3 peer dependency
38+
run: npm install --no-save winston@3
39+
40+
- run: npm test
41+

.travis.yml

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

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# winston-daily-rotate-file
22

3-
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]
3+
[![NPM version][npm-image]][npm-url]
44

55
[![NPM](https://nodei.co/npm/winston-daily-rotate-file.png)](https://nodei.co/npm/winston-daily-rotate-file/)
66

@@ -133,7 +133,3 @@ MIT
133133

134134
[npm-image]: https://badge.fury.io/js/winston-daily-rotate-file.svg
135135
[npm-url]: https://npmjs.org/package/winston-daily-rotate-file
136-
[travis-image]: https://travis-ci.org/winstonjs/winston-daily-rotate-file.svg?branch=master
137-
[travis-url]: https://travis-ci.org/winstonjs/winston-daily-rotate-file
138-
[daviddm-image]: https://david-dm.org/winstonjs/winston-daily-rotate-file.svg?theme=shields.io
139-
[daviddm-url]: https://david-dm.org/winstonjs/winston-daily-rotate-file

0 commit comments

Comments
 (0)