<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. --> - [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request targets the `master` branch of freeCodeCamp. Closes #35345 This PR resolves an issue where the `/challenges/current-challenge` request times out due to an unresolved promise.
37 lines
584 B
YAML
37 lines
584 B
YAML
language: node_js
|
|
|
|
node_js:
|
|
- 'lts/*'
|
|
|
|
cache:
|
|
directories:
|
|
- '$HOME/.npm'
|
|
|
|
env:
|
|
global:
|
|
- NO_UPDATE_NOTIFIER=1
|
|
- NODE_NO_WARNINGS=1
|
|
|
|
before_install:
|
|
- npm config set loglevel warn
|
|
|
|
install: npm ci
|
|
|
|
before_script:
|
|
- npm run ensure-env
|
|
|
|
jobs:
|
|
include:
|
|
- stage: Lint javaScript
|
|
script:
|
|
- npm run lint
|
|
|
|
- stage: Unit and Integration tests
|
|
script: npm test
|
|
|
|
- stage: Artifacts builds
|
|
if: branch = master && type != pull_request
|
|
script: bash tools/ci-scripts/trigger-build.sh
|
|
install: skip
|
|
before_script: skip
|