Skip to content

Commit

Permalink
feat: Automate tests with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zankia authored and remyla committed Mar 27, 2024
1 parent 685aa93 commit aaf5f0a
Show file tree
Hide file tree
Showing 4 changed files with 4,611 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: [push]
jobs:
Test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server-tests
env:
DEBUG: "*"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- working-directory: ./server-nodejs
run: cp conf_template.json conf.json
- working-directory: ./server-nodejs
run: npm ci
- working-directory: ./server-nodejs
run: npm start & #Would be better to directory run tests with mocha + supertest
#instead of running the server in background
- run: npm ci
- run: npm test

services:
mongo:
image: mvertes/alpine-mongo:latest
ports:
- 27017:27017
Loading

0 comments on commit aaf5f0a

Please sign in to comment.