WIP
This commit is contained in:
committed by
Ulises Gascon
parent
91ba1f5054
commit
9dd233c371
Vendored
+24
@@ -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 }}
|
||||
Reference in New Issue
Block a user