Skip to content

feature: setup linting #13

feature: setup linting

feature: setup linting #13

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install --frozen-lockfile
- name: EsLint
run: npm run lint
unit-test:
runs-on: ubuntu-latest
needs: lint
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install --frozen-lockfile
- name: Unit test
run: npm run test:unit