Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement separate labs and linting workflow #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/labs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check labs

on: pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run hpw
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Check labs
name: Lint

on: pull_request
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
Expand All @@ -18,4 +22,4 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm t
- run: npm run lint
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"author": "Timur Shemsedinov <[email protected]>",
"license": "MIT",
"scripts": {
"test": "eslint ./Exercises; hpw",
"ci": "eslint ./Exercises && hpw"
"test": "npm run -s lint; npm run -s hpw",
"lint": "eslint ./Exercises",
"hpw": "hpw"
},
"dependencies": {
"eslint": "^7.5.0",
Expand Down