Skip to content

add sha256 case to unit test suit #148

add sha256 case to unit test suit

add sha256 case to unit test suit #148

Workflow file for this run

name: Node.js CI
on:
push:
workflow_call:
jobs:
lintAndTest:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn" # Cache Yarn dependencies
# Cache Yarn dependencies
- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: |
node_modules
.yarn/cache
key: yarn-cache-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-cache-${{ matrix.node-version }}-
# Install all dependencies for all packages in the monorepo
- run: yarn install --immutable --immutable-cache --check-cache
# Check formatting for all packages
- run: yarn workspaces run fmt:check
# Build all packages
- run: yarn build
# Run tests for all packages
- run: yarn workspaces run test