Skip to content

Merge pull request #13 from sleepinzombie/feat/add-use-persisted-state #8

Merge pull request #13 from sleepinzombie/feat/add-use-persisted-state

Merge pull request #13 from sleepinzombie/feat/add-use-persisted-state #8

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v4
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
env:
CI: true
- name: Build library
run: npm run build