Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Monargoras committed Dec 9, 2024
2 parents 8336456 + 9a8aa16 commit 6dcefd5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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 🛎️
Expand All @@ -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
4 changes: 1 addition & 3 deletions test/testrun.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function runNxtstart(scriptPath, callback) {
scriptPath,
[
`--projectName=${projectName}`,
'--keepGit',
'--no-keepGit',
`--packageManager=${packageManager}`,
'--useLatestVersions',
'--allPackages',
Expand Down Expand Up @@ -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')
}
})

0 comments on commit 6dcefd5

Please sign in to comment.