Skip to content

Commit

Permalink
next ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dheidemann committed Jul 3, 2024
1 parent 3498832 commit 5fb0f43
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Test Next.js

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

defaults:
run:
working-directory: ./frontend

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Run tests
run: npm test

0 comments on commit 5fb0f43

Please sign in to comment.