Skip to content

5.1.12

5.1.12 #59

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
unit-tests:
name: 🧪 Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install yarn
uses: borales/actions-yarn@v4
with:
cmd: install
- run: yarn test
fail-report:
if: ${{ failure() }}
needs: unit-tests
runs-on: ubuntu-latest
steps:
- name: Send Telegram message with fail report
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.CI_TELEGRAM_TO }}
token: ${{ secrets.CI_TELEGRAM_TOKEN }}
format: markdown
message: |
❌ **${{ github.repository }}** - Workflow: ${{ github.workflow }}
[Actions](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for commit "[${{ github.event.commits[0].message }}](https://github.com/${{ github.repository }}/commit/${{github.sha}})" (${{github.actor}})