Skip to content

Commit

Permalink
Scheduled and automated tests (#1)
Browse files Browse the repository at this point in the history
* add ci instead of install

* remove specific registry

* test npm i

* add npm token

* try rm

* remove process killing on linux

* split in two jobs

* add clearing of directory

* clear directory using find

* keep test script

* keep .

* fix name flag

* update filter

* test working directory

* fix double dots

* test subdirectory

* remove parenthesis

* fix path

* test subdir

* revert to working workflow

* add scheduled test
  • Loading branch information
Monargoras authored Nov 21, 2024
1 parent b4dbd03 commit 83eb272
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 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
2 changes: 0 additions & 2 deletions test/testrun.js
Original file line number Diff line number Diff line change
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 83eb272

Please sign in to comment.