-
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.
Merge pull request #5 from michalspano/2-convert-gitlab-pipeline-to-g…
…ithub-actions #2 Add GH Workflow to test backend via Postman
- Loading branch information
Showing
3 changed files
with
34 additions
and
52 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Express.js, Postman backend - SEManager | ||
|
||
# On every push, the Backend shall be tested. | ||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
# URL and port definition for mongodb on the runner | ||
MONGODB_URI: "mongodb://localhost:27017/serverTestDB" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
# Caching in monorepos (server) | ||
cache-dependency-path: server/package-lock.json | ||
- name: Start MongoDB service | ||
# Using supercharge to setup/start the MongoDB service | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 4.4 | ||
- name: Install dependencies | ||
run: | | ||
cd server | ||
npm ci | ||
- name: Test the backend | ||
run: | | ||
cd server | ||
npm run ci-test |
This file was deleted.
Oops, something went wrong.
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