style(docservice): 🎨 apply Prettier formatting to the routing table #88
This file contains hidden or 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
| name: Service unit tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| paths: | |
| - '**.js' | |
| - '.github/workflows/unitTests.yml' | |
| - '!tests/integration/**' | |
| - '!DocService/sources/databaseConnectors/**' | |
| jobs: | |
| unit-tests: | |
| name: Service unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v3 | |
| - name: Caching dependencies | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: | | |
| ./npm-shrinkwrap.json | |
| ./Common/npm-shrinkwrap.json | |
| ./DocService/npm-shrinkwrap.json | |
| ./FileConverter/npm-shrinkwrap.json | |
| - name: Install modules | |
| run: | | |
| npm ci | |
| npm --prefix Common ci | |
| npm --prefix DocService ci | |
| npm --prefix FileConverter ci | |
| # Serially. The suite reaches an external SMTP service, and its 10s | |
| # timeout loses races against the parallel workers once there are | |
| # enough suites to saturate the runner - an intermittent red that has | |
| # nothing to do with the code under test. This also matches how the | |
| # suite is run locally, so a local pass means the same thing as a CI | |
| # pass. | |
| - name: Run Jest | |
| run: npm run "unit tests" -- --runInBand |