Skip to content

Merge pull request #218 from wp-graphql/changeset-release/main #420

Merge pull request #218 from wp-graphql/changeset-release/main

Merge pull request #218 from wp-graphql/changeset-release/main #420

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-tests:
name: Unit tests on Node ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18', '20']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run Unit tests
run: npm run test:unit