Skip to content

Add dockerfile & gh workflow #3

Add dockerfile & gh workflow

Add dockerfile & gh workflow #3

Workflow file for this run

name: Check linter, formatting, tests
on: [push, pull_request]
jobs:
format_and_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install deps
run: npm ci
- name: Code format
run: npm run format
- name: Lint code
run: npm run lint