Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node:
- 12
- 14
- 16
- 17
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: ⬇️ Checkout
uses: actions/checkout@v2

- name: ⎔ Setup node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: 📥 Download deps
run: npm ci

- name: Test
run: npm test
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gulp.task('lint', function () {
.pipe(jshint.reporter('fail'));
});

gulp.task('test', ['lint'], function () {
gulp.task('test', function () {
var options = {
htmlhintrc: './.htmlhintrc',
ignores: {
Expand All @@ -29,3 +29,5 @@ gulp.task('test', ['lint'], function () {
.pipe(htmlhint_inline.reporter())
.pipe(htmlhint_inline.reporter('fail'));
});

gulp.task('default', gulp.series('lint', 'test'));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"node": ">= 4"
},
"scripts": {
"test": "gulp test"
"test": "gulp"
},
"dependencies": {
"gulp-util": "^3.0.8",
Expand Down