Skip to content

Commit

Permalink
Merge pull request #1374 from PhilanthropyDataCommons/test-current-no…
Browse files Browse the repository at this point in the history
…de-weekly

Test against current Node.js weekly
  • Loading branch information
jasonaowen authored Dec 12, 2024
2 parents 6e75449 + a2f8ddb commit b048cee
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/test-current-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Test on current Node.js

on:
schedule:
- cron: '00 00 * * 1'
workflow_dispatch:

jobs:
tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: current
check-latest: true

- name: Install dependencies
run: npm ci

- name: Run build
run: npm run build

- name: Run all tests (without coverage)
run: npm run test:ci -- --coverage=false
env:
PGHOST: localhost
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: postgres
AUTH_SERVER_ISSUER: https://totally-fake-server-name/realms/pdc
OPENAPI_DOCS_AUTH_CLIENT_ID: pdc-fake-client-id
S3_ACCESS_KEY_ID: fake-access-key-id
S3_ACCESS_SECRET: fake-access-key-secret
S3_BUCKET: fake-s3-bucket
S3_ENDPOINT: https://fake-s3-endpoint
S3_PATH_STYLE: false
S3_REGION: fake-s3-region

0 comments on commit b048cee

Please sign in to comment.