Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Aug 19, 2024
1 parent ea109cb commit b37fa47
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/angular-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ defaults:

jobs:
build-demos:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/react-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ defaults:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vue-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ defaults:

jobs:
build-demos:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions demo/angular/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const availableLanguages = testData["tests"]["singleKeyword"].map(
(x) => x["language"]
);

const commands = process.argv.slice(2, -1);
const args = process.argv.slice(2, -1);
const language = process.argv.slice(-1)[0];

if (!availableLanguages.includes(language)) {
Expand Down Expand Up @@ -106,7 +106,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.spawn("ng", commands, {
execPath: command,
shell: true
child_process.execSync(`${command} ng ${args}`, {
shell: true,
stdio: 'inherit'
});
8 changes: 4 additions & 4 deletions demo/react-native/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const testData = require('../../../resources/.test/test_data.json');

const availableLanguages = testData.tests.singleKeyword.map((x) => x.language);

const commands = process.argv.slice(2, -1);
const args = process.argv.slice(2, -1);
const language = process.argv.slice(-1)[0];

if (!availableLanguages.includes(language)) {
Expand Down Expand Up @@ -95,7 +95,7 @@ fs.writeFileSync(

const command = process.platform === 'win32' ? 'npx.cmd' : 'npx';

child_process.spawn("react-native", commands, {
execPath: command,
shell: true
child_process.execSync(`${command} react-native ${args}`, {
shell: true,
stdio: 'inherit'
});
8 changes: 4 additions & 4 deletions demo/react/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const availableLanguages = testData["tests"]["singleKeyword"].map(
(x) => x["language"]
);

const commands = process.argv.slice(2, -1);
const args = process.argv.slice(2, -1);
const language = process.argv.slice(-1)[0];

if (!availableLanguages.includes(language)) {
Expand Down Expand Up @@ -106,7 +106,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.spawn("react-scripts", commands, {
execPath: command,
shell: true
child_process.execSync(`${command} react-scripts ${args}`, {
shell: true,
stdio: 'inherit'
});
8 changes: 4 additions & 4 deletions demo/vue/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const availableLanguages = testData["tests"]["singleKeyword"].map(
x => x["language"]
);

const commands = process.argv.slice(2, -1);
const args = process.argv.slice(2, -1);
const language = process.argv.slice(-1)[0];

if (!availableLanguages.includes(language)) {
Expand Down Expand Up @@ -102,7 +102,7 @@ export default porcupineModel;

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.spawn("vite", commands, {
execPath: command,
shell: true
child_process.execSync(`${command} vite ${args}`, {
shell: true,
stdio: 'inherit'
});
6 changes: 3 additions & 3 deletions demo/web/scripts/run_demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fs.writeFileSync(

const command = (process.platform === "win32") ? "npx.cmd" : "npx";

child_process.spawn("http-server", ["-a", "localhost", "-p", "5000"], {
execPath: command,
shell: true
child_process.execSync(`${command} http-server -a localhost -p 5000`, {
shell: true,
stdio: 'inherit'
});

0 comments on commit b37fa47

Please sign in to comment.