Skip to content

chore: update dependencies #45

chore: update dependencies

chore: update dependencies #45

Workflow file for this run

name: test
on:
push:
branches:
- 'main'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: set outputs
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: start build notification
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT }}
token: ${{ secrets.TELEGRAM_TOKEN }}
disable_web_page_preview: true
format: html
message: |
⏳ <a href="${{ github.server_url }}/${{ github.repository }}"><b>${{ github.repository }}</b></a>
${{ github.workflow }}
by: ${{ github.actor }}
branch: ${{ github.ref }}
commit: ${{ github.event.head_commit.message }}
sha: ${{ steps.vars.outputs.sha_short }}
<a href="${{ github.event.head_commit.url }}">link</a>
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: install node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: test
run: pnpm test
- name: finish build notification
uses: appleboy/telegram-action@master
if: always()
with:
to: ${{ secrets.TELEGRAM_CHAT }}
token: ${{ secrets.TELEGRAM_TOKEN }}
disable_web_page_preview: true
format: html
message: |
${{ job.status == 'success' && '✅' || '🆘' }} <a href="${{ github.server_url }}/${{ github.repository }}"><b>${{ github.repository }}</b></a>
${{ github.workflow }}
by: ${{ github.actor }}
branch: ${{ github.ref }}
commit: ${{ github.event.head_commit.message }}
sha: ${{ steps.vars.outputs.sha_short }}
<a href="${{ github.event.head_commit.url }}">link</a>