Skip to content

Instantly share code, notes, and snippets.

@achingachris
Created July 9, 2023 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achingachris/262074cb51d781aae8661f81a297373e to your computer and use it in GitHub Desktop.
Save achingachris/262074cb51d781aae8661f81a297373e to your computer and use it in GitHub Desktop.
name: Test and Build Next.JS
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build
run: npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment