Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

feat: добавление правила для защищенной ветки #68

feat: добавление правила для защищенной ветки

feat: добавление правила для защищенной ветки #68

Workflow file for this run

name: Test on Pull Request
on:
pull_request:
types:
- opened
- synchronize
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies
run: yarn --immutable
tests:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Run tests
run: yarn test
eslint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Run eslint
run: yarn eslint
tslint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Run tslint
run: yarn tslint
prettier:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Run prettier
run: yarn prettier
protect:
runs-on: ubuntu-latest
needs: [tests, eslint, tslint, prettier]
steps:
- name: Protect branch
run: echo "Branch is protected"