Skip to content

[AppRouter] Initial Setup & Data-Fetching in Server Components #1134

[AppRouter] Initial Setup & Data-Fetching in Server Components

[AppRouter] Initial Setup & Data-Fetching in Server Components #1134

Workflow file for this run

name: unit tests
on: [pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup npm cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
- name: Run unit tests
run: npm run test