From 06c5fbd900270334c9c2324298b7fcdd1652ce6c Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Tue, 23 Mar 2021 01:08:08 +0100 Subject: [PATCH] Create lint.js.yml --- .github/workflows/lint.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/lint.js.yml diff --git a/.github/workflows/lint.js.yml b/.github/workflows/lint.js.yml new file mode 100644 index 0000000..0e1f676 --- /dev/null +++ b/.github/workflows/lint.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Lint code + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm i + - run: npm run lint