Dop 5395 (#1084) #2568
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
name: CI-persistence | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# Checks for changes to the modules/persistence directory | |
changes: | |
# locking to ubuntu 22.04 to allow mongodb-memory-server to run | |
runs-on: ubuntu-22.04 | |
outputs: | |
persistence: ${{ steps.filter.outputs.persistence }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
persistence: | |
- 'modules/persistence/**' | |
test: | |
needs: changes | |
if: ${{ needs.changes.outputs.persistence == 'true' }} | |
defaults: | |
run: | |
working-directory: 'modules/persistence' | |
# locking to ubuntu 22.04 to allow mongodb-memory-server to run | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- name: Install dependencies | |
run: npm install --dev | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm test |