Skip to content

Setup github actions workflow #2

Setup github actions workflow

Setup github actions workflow #2

Workflow file for this run

name: NodeJS
on: push
env:
NEXT_TELEMETRY_DISABLED: 1
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 21
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
path: node_modules
key: node-deps-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm ci
if: steps.cache-dependencies.outputs.cache-hit != 'true'
- name: Run eslint
run: npm run lint