Skip to content

Commit

Permalink
Update nodejs to LTS version (OctoLinker#775)
Browse files Browse the repository at this point in the history
* Update nodejs to LTS version

* Update snapshot
  • Loading branch information
stefanbuck authored Jan 17, 2020
1 parent 84f2b36 commit afdff46
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '12.x'
- run: npm ci
- run: npm test
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '10.x'
node-version: '12.x'
- run: npm ci
- run: npm run build
- run: 'npm run release'
Expand Down
22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "OctoLinker",
"version": "5.2.6",
"engines": {
"node": ">=8.0.0"
"node": ">=12.0.0"
},
"scripts": {
"lint": "eslint .",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,39 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`normaliseResolverResults converts [object Object] 1`] = `
exports[`normaliseResolverResults converts [
'{BASE_URL}/foo/bar/blob/master/file.js',
'{BASE_URL}/foo/bar/blob/master/file.js'
] 1`] = `
Array [
Object {
"registry": "npm",
"target": "foo",
"type": "registry",
},
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/file.js 1`] = `
Array [
Object {
"target": "https://github.com/file.js",
"type": "ping",
},
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/foo/bar/blob/1ab8cfd3b65d3b43335130d6cefbf8c62482680f/file.js 1`] = `
Array [
Object {
"branch": "1ab8cfd3b65d3b43335130d6cefbf8c62482680f",
"branch": "master",
"path": "file.js",
"repo": "bar",
"type": "internal-link",
"url": "https://github.com/foo/bar/blob/1ab8cfd3b65d3b43335130d6cefbf8c62482680f/file.js",
"url": "https://github.com/foo/bar/blob/master/file.js",
"user": "foo",
},
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/foo/bar/blob/master/file.js 1`] = `
Array [
Object {
"branch": "master",
"path": "file.js",
Expand All @@ -45,7 +24,7 @@ Array [
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/foo/bar/blob/master/file.js 2`] = `
exports[`normaliseResolverResults converts [ '{BASE_URL}/foo/bar/blob/master/file.js' ] 1`] = `
Array [
Object {
"branch": "master",
Expand All @@ -58,16 +37,40 @@ Array [
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/foo/bar/blob/master/file.js,{BASE_URL}/foo/bar/blob/master/file.js 1`] = `
exports[`normaliseResolverResults converts { registry: 'npm', target: 'foo' } 1`] = `
Array [
Object {
"branch": "master",
"registry": "npm",
"target": "foo",
"type": "registry",
},
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/file.js 1`] = `
Array [
Object {
"target": "https://github.com/file.js",
"type": "ping",
},
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/foo/bar/blob/1ab8cfd3b65d3b43335130d6cefbf8c62482680f/file.js 1`] = `
Array [
Object {
"branch": "1ab8cfd3b65d3b43335130d6cefbf8c62482680f",
"path": "file.js",
"repo": "bar",
"type": "internal-link",
"url": "https://github.com/foo/bar/blob/master/file.js",
"url": "https://github.com/foo/bar/blob/1ab8cfd3b65d3b43335130d6cefbf8c62482680f/file.js",
"user": "foo",
},
]
`;

exports[`normaliseResolverResults converts {BASE_URL}/foo/bar/blob/master/file.js 1`] = `
Array [
Object {
"branch": "master",
"path": "file.js",
Expand Down

0 comments on commit afdff46

Please sign in to comment.