Chore(deps-dev): Bump globals from 17.7.0 to 17.8.0 #213
Workflow file for this run
This file contains hidden or 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: Test | |
| on: | |
| pull_request: | |
| paths: | |
| - '**/*.js' | |
| - 'package*.json' | |
| push: | |
| branches: [main] | |
| jobs: | |
| jest: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| services: | |
| postgresql: | |
| image: postgres | |
| env: | |
| POSTGRES_USER: workflow_user | |
| POSTGRES_PASSWORD: workflow_password | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Create database | |
| run: psql -h localhost -U workflow_user -c 'CREATE DATABASE "odinbot_test";' | |
| env: | |
| PGPASSWORD: 'workflow_password' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run tests | |
| run: npm run test | |
| env: | |
| # dbmate defaults to requiring SSL and will not automatically try without | |
| # only prod DB will be set up for SSL, so we must disable it here else dbmate will not connect | |
| TEST_DATABASE_URL: postgresql://workflow_user:workflow_password@localhost:5432/odinbot_test?sslmode=disable |