Skip to content

Commit da6fc09

Browse files
author
veeck
committed
Replace travis with github actions for testing
1 parent 84729a9 commit da6fc09

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

.github/workflows/testing.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: "Run Automated Tests"
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
strategy:
17+
matrix:
18+
node-version: [12.x, 14.x, 16.x]
19+
steps:
20+
- name: Checkout code 🛎️
21+
uses: actions/checkout@v2
22+
- name: Setup Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Install dependencies and run tests
27+
run: |
28+
npm ci
29+
npm test

.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
.idea
2-
.travis.yml

.travis.yml

-5
This file was deleted.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# gulp-modernizr
22

3+
[![Build Status](https://github.com/Modernizr/gulp-modernizr/actions/workflows/testing.yml/badge.svg)](https://github.com/Modernizr/gulp-modernizr/actions/workflows/testing.yml)
34
[![npm version](https://badge.fury.io/js/gulp-modernizr.svg)](https://badge.fury.io/js/gulp-modernizr)
4-
[![Build Status](https://secure.travis-ci.org/Modernizr/gulp-modernizr.png?branch=master,develop)](https://travis-ci.org/Modernizr/gulp-modernizr)
55

6-
A [Gulp](https://gulpjs.com/) wrapper for [Modernizr](https://github.com/doctyper/customizr).
6+
A [Gulp](https://gulpjs.com/) wrapper for [Modernizr](https://github.com/Modernizr/customizr).
77

88
*Note*: This plugin uses version 3 of Modernizr. Make sure to check the [Github repo](https://github.com/Modernizr/Modernizr/tree/master/feature-detects) for the correct feature names (example: ```Modernizr.touch``` was renamed to ```Modernizr.touchevents```).
99

@@ -54,7 +54,7 @@ gulp.src('./js/*.js')
5454
#### settings
5555
Type: `Object`
5656

57-
You can pass settings as an object. See the [customizr repository](https://github.com/doctyper/customizr#config-file) for valid settings.
57+
You can pass settings as an object. See the [customizr repository](https://github.com/Modernizr/customizr#config-file) for valid settings.
5858

5959
```javascript
6060
gulp.src('./js/*.js')

0 commit comments

Comments
 (0)