Skip to content

Add dynamic log level configuration with environment variable (#354) #801

Add dynamic log level configuration with environment variable (#354)

Add dynamic log level configuration with environment variable (#354) #801

Workflow file for this run

name: Unit Tests
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install modules
run: npm install
- name: Run unit tests
run: npm run test:unit
env:
JWT_TOKEN_LOGIN: ploki
JWT_TOKEN: abcdef
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
flags: unittests # optional
fail_ci_if_error: true # optional (default = false)
directory: coverage