mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
Update eslint.yml
This commit is contained in:
40
apps/web/.github/workflows/eslint.yml
vendored
40
apps/web/.github/workflows/eslint.yml
vendored
@@ -1,38 +1,12 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
name: Lint
|
||||
|
||||
name: ESLint
|
||||
on: pull_request
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
eslint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x, 13.x]
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup SSH
|
||||
uses: webfactory/ssh-agent@v0.2.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.GH_SSH_KEY }}
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm install
|
||||
- name: ESLint Action
|
||||
uses: hallee/eslint-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/checkout@v1
|
||||
- uses: hallee/eslint-action@master
|
||||
|
||||
Reference in New Issue
Block a user