Update water-demand-prediction.service.ts #174
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: continuous-integration | |
on: | |
push: | |
jobs: | |
install: | |
name: npm install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: volta-cli/action@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-dev-node_modules-${{ hashFiles('package-lock.json') }} | |
- run: npm ci --include dev | |
npm: | |
name: npm ${{ matrix.job.name }} | |
runs-on: ${{ matrix.job.runs-on || 'ubuntu-latest' }} | |
needs: install | |
continue-on-error: ${{ matrix.job.continue-on-error }} | |
strategy: | |
matrix: | |
job: | |
- name: build | |
command: npm run build | |
continue-on-error: false | |
- name: lint | |
command: npm run lint -- --deny-warnings | |
continue-on-error: true | |
- name: doc | |
command: npm run doc | |
continue-on-error: true | |
- name: fmt | |
command: npx prettier . --check --plugin prettier-plugin-toml | |
continue-on-error: true | |
- name: test | |
command: npm run test | |
continue-on-error: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: volta-cli/action@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-dev-node_modules-${{ hashFiles('package-lock.json') }} | |
- run: npm ci --include dev | |
- run: ${{ matrix.job.command }} |