From a8b481d64a7cd39bc5917d36071bac4e2708f87c Mon Sep 17 00:00:00 2001 From: Esteban Borai Date: Mon, 24 May 2021 19:52:10 -0400 Subject: [PATCH] chore(gha): impl lint workflow Implements "lint" workflow to run "npm run lint" on every PR against `master` branch --- .github/workflows/lint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..bebbfe8 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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