tornado-nova/.github/workflows/build.yml

32 lines
888 B
YAML
Raw Normal View History

2021-06-16 02:31:31 +02:00
name: build
on:
push:
branches: ['*']
tags: ['v[0-9]+.[0-9]+.[0-9]+']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
2021-08-19 12:07:32 +02:00
- run: yarn cache clean --all
2021-08-19 18:51:47 +02:00
- run: yarn install --network-concurrency 1
2021-06-16 02:31:31 +02:00
- run: yarn lint
2021-06-16 14:20:16 +02:00
- run: yarn build
- run: yarn test
2022-02-11 21:53:36 +01:00
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
2021-06-16 14:20:16 +02:00
- name: Telegram Failure Notification
uses: appleboy/telegram-action@0.0.7
if: failure()
with:
message: ❗ Build failed for [${{ github.repository }}](https://github.com/${{ github.repository }}/actions) because of ${{ github.actor }}
format: markdown
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}