From 5e84380acceebe8a0d54d82b2f04b51109d2c480 Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 30 Dec 2020 14:35:00 -0700 Subject: [PATCH] Workflow --- .github/workflows/ESLint.yml | 43 ++++++++++++++++++++++++++++++++++++ .github/workflows/Node.yml | 1 - 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ESLint.yml delete mode 100644 .github/workflows/Node.yml diff --git a/.github/workflows/ESLint.yml b/.github/workflows/ESLint.yml new file mode 100644 index 0000000..0d44dd6 --- /dev/null +++ b/.github/workflows/ESLint.yml @@ -0,0 +1,43 @@ +name: ESLint +on: + push: + pull_request: + branches: + - 'feature/**' + - 'issue/**' + - 'master' + paths-ignore: + - 'examples/**' + - '.github/**' + - '.vscode/**' + - 'docs/**' + - '.eslintiginore' + - '.gitignore' + - '.npmignore' + - '.travis.yml' + - 'LICENSE' + - '**.md' + - 'renovate.json' +jobs: + eslint: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10.x, 11.x, 12.x, 13.x, 14.x, 15.x] + steps: + - name: Checkout the repository + uses: actions/checkout@v2 + + - name: Uses Node.js v${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Installs dependencies + run: npm i -g eslint && npm ci + + - name: Lints the repository + run: npm run lint + + - name: Runs Jest for unit testing + run: npm test diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml deleted file mode 100644 index 6fca2e0..0000000 --- a/.github/workflows/Node.yml +++ /dev/null @@ -1 +0,0 @@ -name: ESLint