Skip to content

collection: Don't SHA the Request IP #26

collection: Don't SHA the Request IP

collection: Don't SHA the Request IP #26

Workflow file for this run

name: Test Ping Collector
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
runner-job:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: secret
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Run tests
env:
PG_URL: localhost
PG_PORT: 5432
PG_USER: postgres
PG_PW: secret
PG_DB: pings_test
run: npm run test