philreekshdr triggered quality check pipeline #6027
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: 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() |