Skip to content

chore: add boilerplate testing workflow #2

chore: add boilerplate testing workflow

chore: add boilerplate testing workflow #2

Workflow file for this run

name: Test Next.js App
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Step into correct directory
run: cd src
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build application
run: npm run build