Skip to content

PR #290: Add "Migrating My Website from GatsbyJS to NextJS" post #370

PR #290: Add "Migrating My Website from GatsbyJS to NextJS" post

PR #290: Add "Migrating My Website from GatsbyJS to NextJS" post #370

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
name: Lint and Test all
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Run linter script
run: yarn lint
- name: Run type check script
run: yarn type-check
- name: Run test script
run: yarn test