Skip to content

update UserAvatar (add sizes), create new PostPreview (temp), create … #308

update UserAvatar (add sizes), create new PostPreview (temp), create …

update UserAvatar (add sizes), create new PostPreview (temp), create … #308

Workflow file for this run

name: check-pushes
on:
push:
branches:
- '*'
- '*/*'
- '**'
jobs:
simple_tests:
if: contains(github.event.head_commit.message, '%test%')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run lint
- run: npm run slint
- run: npm run test:jest
build:
if: contains(github.event.head_commit.message, '%build%')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run production
pw_tests:
if: contains(github.event.head_commit.message, '%pw_tests%')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run pw:install
- run: npm run test:pw-linux
pw_update:
if: contains(github.event.head_commit.message, '%pw_update%')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run pw:install
- run: npm run test:pw-update-linux
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update PW-snapshot"
cy_tests:
if: contains(github.event.head_commit.message, '%cy_tests%')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run test:cy
cy_update:
if: contains(github.event.head_commit.message, '%cy_update%')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run test:cy:update
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update CY-snapshot"
notify:
if: ${{ always() && contains(github.event.head_commit.message, '%tg_notify%')}}
runs-on: ubuntu-latest
needs:
- simple_tests
- build
- pw_tests
- pw_update
- cy_tests
- cy_update
steps:
- name: Telegram success notification
uses: VanyaMate/github-action-telegram-notification@v0.20
with:
success: ${{ job.status }}
tg_bot_token: ${{ secrets.TG_TOKEN_BOT }}
tg_chat_id: ${{ secrets.TG_CHAT_ID }}