Skip to content

chore(ci): drop pins for allowlisted actions (#73) #73

chore(ci): drop pins for allowlisted actions (#73)

chore(ci): drop pins for allowlisted actions (#73) #73

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
paths-ignore:
- ".github/**"
- "**.md"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
tests:
name: Tests
runs-on: ubuntu-24.04
strategy:
matrix:
name: [backend, frontend-merge, frontend-pr]
include:
- name: backend
dir: backend
triggers: ('backend/')
- name: frontend-merge
dir: frontend
triggers: ('.')
- name: frontend-pr
dir: frontend
steps:
- uses: actions/checkout@v4
- uses: ./
with:
commands: |
npm ci
npm run test:cov
dir: ${{ matrix.dir }}
node_version: "20"
repository: bcgov/quickstart-openshift
sonar_args: >
-Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
-Dsonar.organization=bcgov-nr
-Dsonar.projectKey=bcgov-nr_action-test-and-analyse_${{ matrix.dir }}
-Dsonar.sources=src
-Dsonar.tests.inclusions=**/*spec.ts
sonar_token: ${{ matrix.name == 'backend' && secrets.SONAR_TOKEN_BACKEND || secrets.SONAR_TOKEN_FRONTEND }}
triggers: ${{ matrix.triggers }}