Skip to content

Commit

Permalink
ci: configure eslint workflow (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg authored Nov 27, 2023
1 parent d15c66f commit 153dc81
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Initialize and update submodules
run: |
git submodule update --init --recursive
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build
14 changes: 14 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint

on: [push]

jobs:
ESLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install ESLint
run: |
npm install eslint
- name: Run ESLint
run: npm run lint

0 comments on commit 153dc81

Please sign in to comment.