Skip to content

chore: add boilerplate testing workflow #18

chore: add boilerplate testing workflow

chore: add boilerplate testing workflow #18

Workflow file for this run

name: Test Next.js App
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [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: Install dependencies
run: npm install
working-directory: ./src
- name: Run linter
run: npm run lint
working-directory: ./src
- name: Run tests
run: npx jest --config jest.config.js
working-directory: ./src
- name: Build application
run: npm run build
working-directory: ./src