Add isDefined and removeUndefineds #45
This file contains 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: 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}}) |