This commit is contained in:
Ulises Gascón
2024-02-07 12:29:54 +01:00
committed by Ulises Gascon
parent 91ba1f5054
commit 9dd233c371
143 changed files with 68070 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
name: Continous Integration
on: [push]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Check code style
run: npm run lint
- name: Generate a random JWT secret
id: generate-secret
run: echo "::set-output name=JWT_SECRET::$(openssl rand -base64 30)"
shell: bash
- name: Prepare environment
run: npm run infra:start
- name: Run tests
run: npm test
env:
MONGODB_URI: mongodb://localhost:27017/whispering-database
PORT: 3000
SALT_ROUNDS: 10
JWT_SECRET: ${{ steps.generate-secret.outputs.JWT_SECRET }}