Skip to content

Merge pull request #2 from evgenygorchakov/module1-task2 #5

Merge pull request #2 from evgenygorchakov/module1-task2

Merge pull request #2 from evgenygorchakov/module1-task2 #5

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- '*'
name: Project check
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- uses: actions/checkout@master
name: Checkout
- name: Install dependencies
run: |
if [ -f 'package.json' ]; then npm install; else echo 'Skip. The file package.json does not exist'; fi
- name: Run checks
run: |
if [ -f 'package.json' ]; then npm run lint; else echo 'Skip. The file package.json does not exist'; fi