Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test workflows #2 #2

Merged
merged 25 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
}
})