Skip to content

32 enhance writing data #70

32 enhance writing data

32 enhance writing data #70

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
workflow_dispatch:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
build-node:
runs-on: ubuntu-latest
container: node:20
steps:
- run: node --version
- uses: actions/checkout@v3
- run: npm ci
- run: npm run build:prod --if-present
- name: Start server
run: |
npm start &
sleep 6 # Give server some time to start
- run: npm test