Merge pull request #8 from AdonaiJehosua/module6-task1 #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |