Skip to content

created ci workflow running esLint on every Push or PR to main (#19) #1

created ci workflow running esLint on every Push or PR to main (#19)

created ci workflow running esLint on every Push or PR to main (#19) #1

Workflow file for this run

name: ci
# This workflow will run whenever we push commits to the `main` branch, or
# whenever there's a pull request to the `main` branch. See:
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#on
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install node dependencies
run: npm ci
- name: Run ESLint
run: npm run lint