Skip to content

Commit

Permalink
Merge pull request #5 from michalspano/2-convert-gitlab-pipeline-to-g…
Browse files Browse the repository at this point in the history
…ithub-actions

 #2 Add GH Workflow to test backend via Postman
  • Loading branch information
michalspano committed Nov 12, 2023
2 parents ad522c1 + 0086ab1 commit 39bcfb9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 52 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/server.yml
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:https://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
52 changes: 0 additions & 52 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## SEManager - Empowering Your Academic Journey

[![Express.js, Postman backend - SEManager](https://github.com/michalspano/SEManager/actions/workflows/server.yml/badge.svg)](https://github.com/michalspano/SEManager/actions/workflows/server.yml)

This project is adapted from the [Backend-Frontend](https://git.chalmers.se/courses/dit342/group-00-web) template and migrated to a
later later version of `Vue.js` and `Bootstrap 5`. Hence, some of
the documentation is outdated and will be updated if desired by the examiners.
Expand Down

0 comments on commit 39bcfb9

Please sign in to comment.