-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5602c0
commit 9ec3da1
Showing
1 changed file
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,25 +17,37 @@ jobs: | |
mongodb-version: ['5.0'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js version ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Use MongoDB from GitHub actions | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: ${{ matrix.mongodb-version }} | ||
|
||
- name: Clean and Install server dependencies | ||
run: | | ||
rm -rf server/node_modules | ||
npm install --prefix server | ||
- name: Install client dependencies | ||
run: npm install --prefix client | ||
|
||
- name: Build client | ||
run: npm run build --prefix client | ||
|
||
- name: Set Jest permissions | ||
run: chmod +x server/node_modules/.bin/jest | ||
|
||
- name: Run Server Tests | ||
run: npm test --prefix server | ||
|
||
- name: Run Client Tests | ||
run: npm test --prefix client | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build and Start Application | ||
run: npm run deploy | ||
|
||
- name: Run Tests | ||
run: npm test | ||
|
||
|