Skip to content

feat: response timeout is configurable from environment (#123) #32

feat: response timeout is configurable from environment (#123)

feat: response timeout is configurable from environment (#123) #32

Workflow file for this run

name: Run Unit Tests and Upload Coverage Artifact
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "lib/**"
- "index.js"
- "test/**"
- ".github/workflows/unit-testing.yml"
pull_request:
branches:
- main
paths:
- "lib/**"
- "index.js"
- "test/**"
- ".github/workflows/unit-testing.yml"
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install app dependencies
run: npm ci
- name: Create .env file
run: echo -e "WATCHER_COLLECTION=1\nWATCHER_API_BASE=url\nWATCHER_AUTHORITY=auth\nWATCHER_CLIENT_ID=clientId\nWATCHER_CLIENT_SECRET=secret" > .env
- name: Run tests
run: npm test
- name: Upload coverage to github
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: coverage
path: coverage