Skip to content

Merge pull request #190 from mailersend/whatsapp-integration #60

Merge pull request #190 from mailersend/whatsapp-integration

Merge pull request #190 from mailersend/whatsapp-integration #60

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [20, 22, 24]
name: Node ${{ matrix.node-version }} Tests
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
id: node-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: node_modules
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-node${{ matrix.node-version }}-
- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm install
- name: Run test suite
run: npm test