Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
outisa committed Aug 5, 2024
1 parent 01a0d11 commit 4c4f858
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/node-push.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [20]
node-version: [22]
mongodb-version: [4.4.0]

steps:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:

strategy:
matrix:
node-version: [20]
node-version: [22]
mongodb-version: [4.4.0]
steps:
- uses: actions/checkout@v4
Expand All @@ -68,7 +68,13 @@ jobs:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm ci
- run: npm run library
- run: npm run test-githubactions
- run: npm run test-gh-bacterium
- run: npm run test-gh-test
- run: npm run test-gh-user
- run: npm run test-gh-credit
- run: npm run test-gh-game
- run: npm run test-gh-case
- run: npm run test-gh-game-testing
env:
SECRET: ${{ secrets.SECRET }}
IMAGEURL: 'images'
Expand Down
10 changes: 8 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
"main": "index.js",
"scripts": {
"start": "NODE_ENV=production node index.js",
"dev": "NODE_ENV=development nodemon index.js",
"dev": "cross-env NODE_ENV=development nodemon index.js",
"test": "NODE_ENV=test node --test --test-force-exit",
"test-githubactions": "NODE_ENV=testserver node --test --test-force-exit",
"test-gh-bacterium": "NODE_ENV=testserver node --test -- ./tests/bacterium_api.test.js",
"test-gh-test": "NODE_ENV=testserver node --test -- ./tests/test_api.test.js",
"test-gh-user": "NODE_ENV=testserver node --test -- ./tests/user_api.test.js",
"test-gh-game": "NODE_ENV=testserver node --test -- ./tests/game_api.test.js",
"test-gh-game-testing": "NODE_ENV=testserver node --test -- ./tests/game-testing.test.js",
"test-gh-credit": "NODE_ENV=testserver node --test -- ./tests/credit_api.test.js",
"test-gh-case": "NODE_ENV=testserver node --test -- ./tests/case_api.test.js",
"build:ui": "rm -rf build && cd ../frontend && npm run build --prod && cp -r build ../backend",
"lint": "eslint .",
"prettier": "prettier",
Expand Down

0 comments on commit 4c4f858

Please sign in to comment.