Skip to content

loki-sinclair-hdruk triggered quality check pipeline #6047

loki-sinclair-hdruk triggered quality check pipeline

loki-sinclair-hdruk triggered quality check pipeline #6047

Workflow file for this run

name: Run quality checks
run-name: ${{ github.actor }} triggered quality check pipeline
on:
push:
branches:
- dev
- staging
- main
pull_request:
branches:
- main
- dev
env:
SLACK_WEBHOOK_URL: '${{ secrets.SLACK_WEBHOOK_URL}}'
SLACK_CHANNEL: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}'
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
environment: |-
${{
github.ref_name == 'dev' && 'dev'
|| github.base_ref == 'dev' && 'dev'
|| 'release'
}}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: NPM install
id: npminstall
run: "npm install"
- name: Run lint
id: runlint
run: "npm run lint"
- name: Run unit tests
id: unittests
run: "npm run test"
- name: Run Notification
id: runnotificationsent
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: ${{ env.SLACK_CHANNEL }}
message: Running CI tests on {{ env.GITHUB_REF_NAME }} branch ${{ job.status }}
if: always()