Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 83fc6e2

Browse filesBrowse files
author
Danny McCormick
authored
Merge pull request actions#5 from actions/v2-workflow
v2 workflow
2 parents b8b34d2 + 26fa782 commit 83fc6e2
Copy full SHA for 83fc6e2

File tree

Expand file treeCollapse file tree

7,187 files changed

+11303
-1877659
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

7,187 files changed

+11303
-1877659
lines changed

‎.github/workflows/workflow.yml

Copy file name to clipboard
+23Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Main workflow
2+
on: [push]
3+
jobs:
4+
run:
5+
name: Run
6+
runs-on: ${{ matrix.operating-system }}
7+
strategy:
8+
matrix:
9+
operating-system: [ubuntu-latest, windows-latest]
10+
actions:
11+
- name: Set Node.js 10.x
12+
uses: bryanmacfarlane/node-config@master
13+
with:
14+
version: 10.x
15+
16+
- name: npm install
17+
run: npm install
18+
19+
- name: Lint
20+
run: npm run format-check
21+
22+
- name: npm test
23+
run: npm test

‎__tests__/finder.test.ts

Copy file name to clipboardExpand all lines: __tests__/finder.test.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs = require('fs');
33
import path = require('path');
44

55
const toolDir = path.join(
6-
process.cwd(),
6+
__dirname,
77
'runner',
88
path.join(
99
Math.random()
@@ -13,7 +13,7 @@ const toolDir = path.join(
1313
'tools'
1414
);
1515
const tempDir = path.join(
16-
process.cwd(),
16+
__dirname,
1717
'runner',
1818
path.join(
1919
Math.random()
@@ -30,11 +30,11 @@ import * as finder from '../src/find-python';
3030

3131
describe('Finder tests', () => {
3232
it('Finds Python if it is installed', async () => {
33-
const pythonDir: string = path.join(toolDir, 'python', '2.0.0', 'x64');
33+
const pythonDir: string = path.join(toolDir, 'Python', '3.0.0', 'x64');
3434
await io.mkdirP(pythonDir);
3535
fs.writeFileSync(`${pythonDir}.complete`, 'hello');
3636
// This will throw if it doesn't find it in the cache (because no such version exists)
37-
await finder.findPythonVersion('2.x', 'x64');
37+
await finder.findPythonVersion('3.x', 'x64');
3838
});
3939

4040
it('Errors if Python is not installed', async () => {

‎node_modules/.bin/acorn

Copy file name to clipboardExpand all lines: node_modules/.bin/acorn
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/acorn.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/acorn.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/atob

Copy file name to clipboardExpand all lines: node_modules/.bin/atob
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/atob.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/atob.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/escodegen

Copy file name to clipboardExpand all lines: node_modules/.bin/escodegen
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/escodegen.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/escodegen.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/esgenerate

Copy file name to clipboardExpand all lines: node_modules/.bin/esgenerate
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/esgenerate.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/esgenerate.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/esparse

Copy file name to clipboardExpand all lines: node_modules/.bin/esparse
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/esparse.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/esparse.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/esvalidate

Copy file name to clipboardExpand all lines: node_modules/.bin/esvalidate
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/esvalidate.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/esvalidate.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/handlebars

Copy file name to clipboardExpand all lines: node_modules/.bin/handlebars
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/handlebars.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/handlebars.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/husky-upgrade

Copy file name to clipboardExpand all lines: node_modules/.bin/husky-upgrade
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/husky-upgrade.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/husky-upgrade.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/import-local-fixture

Copy file name to clipboardExpand all lines: node_modules/.bin/import-local-fixture
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/import-local-fixture.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/import-local-fixture.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/is-ci

Copy file name to clipboardExpand all lines: node_modules/.bin/is-ci
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/is-ci.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/is-ci.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/jest

Copy file name to clipboardExpand all lines: node_modules/.bin/jest
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/jest-runtime

Copy file name to clipboardExpand all lines: node_modules/.bin/jest-runtime
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/jest-runtime.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/jest-runtime.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/jest.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/jest.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/js-yaml

Copy file name to clipboardExpand all lines: node_modules/.bin/js-yaml
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

‎node_modules/.bin/js-yaml.cmd

Copy file name to clipboardExpand all lines: node_modules/.bin/js-yaml.cmd
-7Lines changed: 0 additions & 7 deletions
This file was deleted.

‎node_modules/.bin/jsesc

Copy file name to clipboardExpand all lines: node_modules/.bin/jsesc
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.