Correção da variavel de Ambiente #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Performance Test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Start API | |
env: | |
MONGODB_URI: ${{ secrets.MONGODB_URI }} | |
run: node app.js & | |
- name: Run performance test | |
run: npm run test:performance | |
- name: Analyze performance results | |
run: node analyze-performance.js |