Update dependency newrelic to v11.3.0 (#1433) #4254
This file contains 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Test CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
linter-and-unit: | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
env: | |
NODE_ENV: 'test' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- uses: c-hive/gha-yarn-cache@v2 | |
- name: Install dependencies | |
run: yarn | |
env: | |
MONGOMS_VERSION: '5.0' | |
MONGOMS_DOWNLOAD_URL: 'http://downloads.mongodb.org/linux/mongodb-linux-x86_64-debian10-v5.0-latest.tgz' | |
- name: linter | |
run: | | |
yarn | |
yarn linter | |
- name: Unit tests NodeJs | |
run: | | |
yarn | |
yarn test:ci --coverageDirectory nodejs-coverage --maxWorkers 4 | |
env: | |
REDIS_URL: 'redis://localhost:6379' | |
SECRET: '394ru6gf6gjSsM6' | |
DEFAULT_USER: 'user@user.com' | |
DEFAULT_PASSWORD: '09876543' | |
MONGOMS_VERSION: '5.0' | |
MONGOMS_DOWNLOAD_URL: 'http://downloads.mongodb.org/linux/mongodb-linux-x86_64-debian10-v5.0-latest.tgz' | |
- name: Unit tests React | |
run: | | |
cd client | |
yarn | |
yarn test --coverageDirectory '../react-coverage' --coverage --maxWorkers 4 | |
env: | |
SKIP_PREFLIGHT_CHECK: true | |
- uses: codecov/codecov-action@v3 | |
with: | |
file: nodejs-coverage/lcov.info | |
flags: jestspecs | |
fail_ci_if_error: true |