Reject undefined variables to prevent access to host globals (99) #141
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| env: | |
| POSTGRES_USER: elo | |
| POSTGRES_PASSWORD: elo | |
| POSTGRES_DB: elo | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: false | |
| - name: Install Ruby dependencies | |
| run: gem install activesupport | |
| - name: Install Node.js dependencies | |
| run: npm install | |
| - name: Build project | |
| run: npm run build | |
| - name: Run all tests | |
| run: npm test | |
| env: | |
| PGHOST: localhost | |
| PGPORT: 5432 | |
| PGUSER: elo | |
| PGPASSWORD: elo | |
| PGDATABASE: elo |