Skip to content

ALCS-000: Bump @angular/build from 20.3.15 to 20.3.16 in /alcs-frontend in the npm-minor-and-patch group #264

ALCS-000: Bump @angular/build from 20.3.15 to 20.3.16 in /alcs-frontend in the npm-minor-and-patch group

ALCS-000: Bump @angular/build from 20.3.15 to 20.3.16 in /alcs-frontend in the npm-minor-and-patch group #264

Workflow file for this run

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: "20"
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!"