Skip to content

Update README.md

Update README.md #9

Workflow file for this run

name: Checks
on:
push:
branches:
- '**'
workflow_call:
jobs:
setup:
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.cache-dependencies.outputs.cache-hit }}
steps:
- uses: actions/checkout@v4
- name: Cache npm
id: cache-dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: node-${{ runner.os }}-18-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
node-${{ runner.os }}
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: npm ci
lint:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: node-${{ runner.os }}-18-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
test:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: node-${{ runner.os }}-18-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
build:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
- name: Cache npm
uses: actions/cache@v4
with:
path: ~/.npm
key: node-${{ runner.os }}-18-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build