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

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

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

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

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@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: yarn install
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"