Skip to content

Commit c271173

Browse files
authoredMar 13, 2021
Update deps, switch to actions (#141)
* Update deps, switch to actions * Fix actions dir * Use npm i for actions
1 parent 84ebcb8 commit c271173

File tree

5 files changed

+61
-63
lines changed

5 files changed

+61
-63
lines changed
 

‎.github/workflows/test.yml

+39
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 i
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

-6
This file was deleted.

‎appveyor.yml

-37
This file was deleted.

‎bin/grunt

+20-18
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
process.title = 'grunt';
66

7-
var Liftoff = require('liftoff');
7+
var Liftup = require('liftup');
88
var v8flags = require('v8flags');
99
var extensions = require('interpret').jsVariants;
1010
var nopt = require('nopt');
@@ -35,35 +35,37 @@ if ('completion' in options) {
3535
}
3636

3737
v8flags(function (err, v8flags) {
38-
var Grunt = new Liftoff({
38+
var Grunt = new Liftup({
3939
name: 'grunt',
4040
configName: 'Gruntfile',
4141
// Support a number of languages based on file extension
4242
extensions: extensions,
4343
// Flags that are v8 flags will be loaded into node instead of Gruntfile
4444
v8flags: v8flags
4545
});
46-
Grunt.launch({
46+
Grunt.prepare({
4747
cwd: options.base,
4848
configPath: options.gruntfile,
4949
require: options.require,
5050
verbose: options.verbose
5151
}, function (env) {
52-
var tasks = options.argv.remain;
53-
delete options.argv;
54-
// No grunt install found!
55-
if (!env.modulePath) {
56-
if (options.version) {
57-
process.exit();
52+
Grunt.execute(env, function(env) {
53+
var tasks = options.argv.remain;
54+
delete options.argv;
55+
// No grunt install found!
56+
if (!env.modulePath) {
57+
if (options.version) {
58+
process.exit();
59+
}
60+
if (options.help) {
61+
info.help();
62+
}
63+
info.fatal('Unable to find local grunt.', 99);
64+
} else {
65+
options.gruntfile = env.configPath;
66+
var grunt = require(env.modulePath);
67+
grunt.tasks(tasks, options);
5868
}
59-
if (options.help) {
60-
info.help();
61-
}
62-
info.fatal('Unable to find local grunt.', 99);
63-
} else {
64-
options.gruntfile = env.configPath;
65-
var grunt = require(env.modulePath);
66-
grunt.tasks(tasks, options);
67-
}
69+
});
6870
});
6971
});

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
"dependencies": {
1818
"grunt-known-options": "~1.1.1",
1919
"interpret": "~1.1.0",
20-
"liftoff": "~2.5.0",
20+
"liftup": "~3.0.1",
2121
"nopt": "~4.0.1",
2222
"v8flags": "~3.2.0"
2323
},
2424
"devDependencies": {
2525
"grunt": "~1.3.0",
26-
"grunt-contrib-jshint": "~2.1.0"
26+
"grunt-contrib-jshint": "~3.0.0"
2727
},
2828
"files": [
2929
"bin",

0 commit comments

Comments
 (0)
Please sign in to comment.