diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ca3924..9549674 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,10 @@ name: Test Nxtstart Creation 👷 -on: push +on: + push: + schedule: + - cron: 0 9 * * 1 jobs: - build: + npm: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ @@ -11,7 +14,27 @@ jobs: with: node-version: 20 registry-url: 'https://registry.npmjs.org' + # needed to avoid npm authentication problems in github action runner when trying to npm install + - run: rm package-lock.json - run: npm install + # install create-nxtstart-app - run: npm install -g + # run test - run: npm run testNpm + yarn: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + - name: Setup Node.js 🔧 + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + # needed to avoid npm authentication problems in github action runner when trying to npm install + - run: rm package-lock.json + - run: npm install + # install create-nxtstart-app + - run: npm install -g + # run test - run: npm run testYarn \ No newline at end of file diff --git a/test/testrun.js b/test/testrun.js index 0ab0b1d..be94025 100644 --- a/test/testrun.js +++ b/test/testrun.js @@ -30,7 +30,7 @@ function runNxtstart(scriptPath, callback) { scriptPath, [ `--projectName=${projectName}`, - '--keepGit', + '--no-keepGit', `--packageManager=${packageManager}`, '--useLatestVersions', '--allPackages', @@ -79,7 +79,5 @@ runNxtstart(targetPath, function (err) { // make sure test server is completely shutdown, this will kill ALL running node processes if (isWindows) { shell.exec('taskkill /f /im node.exe') - } else { - shell.exec('killall node') } }) \ No newline at end of file