Skip to content

Commit 4cb5129

Browse files
authored
Move to Github Actions (#183)
1 parent 3b1a0fc commit 4cb5129

6 files changed

Lines changed: 50 additions & 58 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
FORCE_COLOR: 2
7+
8+
jobs:
9+
run:
10+
name: Node ${{ matrix.node }} on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
node: [10, 12, 14]
17+
os: [ubuntu-latest, windows-latest]
18+
19+
steps:
20+
- name: Clone repository
21+
uses: actions/checkout@v2
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node }}
27+
28+
- name: Install npm dependencies
29+
run: npm ci
30+
31+
- name: Run tests
32+
run: npm test
33+
34+
# We test multiple Windows shells because of prior stdout buffering issues
35+
# filed against Grunt. https://github.com/joyent/node/issues/3584
36+
- name: Run PowerShell tests
37+
run: "npm test # PowerShell" # Pass comment to PS for easier debugging
38+
shell: powershell
39+
if: startsWith(matrix.os, 'windows')

‎.travis.yml‎

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

‎CHANGELOG‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v3.0.0
1+
v3.0.0:
22
date: 2021-02-23
33
changes:
44
- Update to pug 3.0.0

‎README.md‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# grunt-contrib-pug v2.0.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-pug.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-pug) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/aso1brjxx79khb41/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-pug/branch/master)
1+
# grunt-contrib-pug v3.0.0 [![Build Status](https://github.com/gruntjs/grunt-contrib-pug/workflows/Tests/badge.svg)](https://github.com/gruntjs/grunt-contrib-pug/actions?workflow=Tests)
22

33
> Compile Pug templates
44
@@ -28,7 +28,7 @@ Task targets, files and options may be specified according to the grunt [Configu
2828
### Options
2929

3030
#### pretty
31-
Type: `Boolean`
31+
Type: `Boolean`
3232
Default: `false`
3333

3434
Output indented HTML.
@@ -98,21 +98,21 @@ pugfilters.another = function(block) {};
9898
```
9999

100100
#### compileDebug
101-
Type: `Boolean`
101+
Type: `Boolean`
102102
Default: `true`
103103

104104
Add Pug debug instructions to generated JS templates.
105105

106106
#### client
107-
Type: `Boolean`
107+
Type: `Boolean`
108108
Default: `false`
109109

110110
Compile to JS template functions for client-side use rather than directly to HTML.
111111

112112
Make sure to also include the Pug runtime (only `runtime.js`) as described in the [Pug documentation](https://github.com/visionmedia/pug#browser-support).
113113

114114
#### namespace
115-
Type: `String`, `Boolean`
115+
Type: `String`, `Boolean`
116116
Default: `'JST'`
117117

118118
The namespace in which the precompiled templates will be assigned. Use dot notation (*e.g.* `App.Templates`) for nested namespaces or `false` for no namespace wrapping.
@@ -121,7 +121,7 @@ When set to `false` with **amd** option set to `true`, the templates will be ret
121121

122122

123123
#### amd
124-
Type: `Boolean`
124+
Type: `Boolean`
125125
Default: `false`
126126

127127
Wraps the output file with an AMD define function and returns the compiled template namespace unless namespace has been explicitly set to false in which case the template function will be returned directly.
@@ -237,7 +237,8 @@ pug: {
237237

238238

239239
## Release History
240-
* 2021-02-23 v3.0.0 Update to pug 3.0.0. Drop Node.js < 10 support.
240+
241+
* 2021-02-23   v3.0.0   Update to pug 3.0.0 Drop Node.js < 10 support.
241242
* 2018-09-07   v2.0.0   Drop Node.js < 6 support. Update dependencies.
242243
* 2016-03-04   v1.0.0   Point main to task and remove peerDeps. Update docs and tests.
243244
* 2015-07-08   v0.15.0   Update to jade 1.11.0. Add test for Codeblocks
@@ -265,4 +266,4 @@ pug: {
265266

266267
Task submitted by [Eric Woroshow](http://ericw.ca/)
267268

268-
*This file was generated on Fri Sep 07 2018 03:45:41.*
269+
*This file was generated on Wed Feb 24 2021 22:30:18.*

‎appveyor.yml‎

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

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"repository": "gruntjs/grunt-contrib-pug",
1010
"license": "MIT",
1111
"engines": {
12-
"node": ">=6"
12+
"node": ">=10"
1313
},
1414
"main": "tasks/pug.js",
1515
"scripts": {

0 commit comments

Comments
 (0)