ALCS-000: Bump the npm-minor-and-patch group in /services with 2 updates #287
Workflow file for this run
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: Analysis | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] | |
| schedule: | |
| - cron: "0 11 * * 0" # 3 AM PST = 11 AM UTC, runs Sundays | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| backend-tests: | |
| name: Backend Tests | |
| if: (! github.event.pull_request.draft) | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 15 | |
| services: | |
| postgres: | |
| image: postgres | |
| env: | |
| POSTGRES_PASSWORD: default | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 5432:5432 | |
| steps: | |
| - uses: bcgov/action-test-and-analyse@51b50be3bb2522e480ed8eab72735612deff7f15 # v1.4.0 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| commands: | | |
| npm ci | |
| npm run test:cov | |
| dir: services | |
| node_version: "24" | |
| sonar_args: > | |
| -Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts | |
| -Dsonar.organization=bcgov-sonarcloud | |
| -Dsonar.projectKey=bcgov-alcs-services | |
| -Dsonar.sources=apps,libs | |
| -Dsonar.test.inclusions=**/*spec.ts | |
| -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info | |
| sonar_token: ${{ env.SONAR_TOKEN }} | |
| triggers: ('services/') | |
| alcs-frontend-tests: | |
| name: ALCS Frontend Tests | |
| if: (! github.event.pull_request.draft) | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: bcgov/action-test-and-analyse@51b50be3bb2522e480ed8eab72735612deff7f15 # v1.4.0 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| commands: | | |
| npm ci | |
| npm run test:cov | |
| dir: alcs-frontend | |
| node_version: "24" | |
| sonar_args: > | |
| -Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts | |
| -Dsonar.organization=bcgov-sonarcloud | |
| -Dsonar.projectKey=bcgov-alcs-frontend | |
| -Dsonar.sources=src | |
| -Dsonar.test.inclusions=**/*spec.ts | |
| -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info | |
| sonar_token: ${{ env.SONAR_TOKEN }} | |
| triggers: ('alcs-frontend/') | |
| portal-frontend-tests: | |
| name: Portal Frontend Tests | |
| if: (! github.event.pull_request.draft) | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: bcgov/action-test-and-analyse@51b50be3bb2522e480ed8eab72735612deff7f15 # v1.4.0 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| commands: | | |
| npm ci | |
| npm run test:cov | |
| dir: portal-frontend | |
| node_version: "24" | |
| sonar_args: > | |
| -Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts | |
| -Dsonar.organization=bcgov-sonarcloud | |
| -Dsonar.projectKey=bcgov-alcs-portal-frontend | |
| -Dsonar.sources=src | |
| -Dsonar.test.inclusions=**/*spec.ts | |
| -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info | |
| sonar_token: ${{ env.SONAR_TOKEN }} | |
| triggers: ('portal-frontend/') | |
| results: | |
| name: Analysis Results | |
| needs: [backend-tests, alcs-frontend-tests, portal-frontend-tests] | |
| if: (! github.event.pull_request.draft) | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'canceled') | |
| run: echo "At least one job has failed." && exit 1 | |
| - run: echo "Success!" |