mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 01:05:58 +02:00
chore(gha): impl lint workflow
Implements "lint" workflow to run "npm run lint" on every PR against `master` branch
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
800a850378
commit
a8b481d64a
@@ -0,0 +1,23 @@
|
||||
name: lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14.x'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run "npm run lint"
|
||||
run: npm run lint
|
||||
Reference in New Issue
Block a user