Skip to content

Commit

Permalink
addition of backend test script and working dir fix for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bukhosi-eugene-mpande committed May 31, 2024
1 parent 38889d4 commit 17ee3d5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run ESLint on Push and Pull Requests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
build:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.17.0
- name: Install dependencies for the backend
run: npm install
working-directory: src/server/workspace
- name: Run Backend Tests
run: npm run test
working-directory: src/server/workspace
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
working-directory: src/client
- name: Run Backend Linters
run: npm run lint
working-directory: src/client
working-directory: src/server/workspace
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

[![Issue Tracking](https://img.shields.io/badge/Issue_Tracking-GitHub_Issues-yellow)](https://github.com/COS301-SE-2024/ClassConnect/issues)

[![Code Coverage](https://img.shields.io/badge/Code_Coverage-Coveralls-blue)](link_to_coveralls)
[![codecov](https://codecov.io/github/COS301-SE-2024/ClassConnect/graph/badge.svg?token=W2cOxCJT1g)](https://codecov.io/github/COS301-SE-2024/ClassConnect)

[![Monitoring](https://img.shields.io/badge/Monitoring-NodePing%2C%20PingPong%2C%20Security_Headers%2C%20Uptime_Robot-lightgrey)](link_to_monitoring)

Expand Down

0 comments on commit 17ee3d5

Please sign in to comment.