Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Node.js CI

# This defines when the automation runs
on:
push:
branches: [ "main" ] # Runs when you push to main
pull_request:
branches: [ "main" ] # Runs when someone sends a PR

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # You can change this to your preferred version
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

# - name: Run typechecks
# run: npm run typecheck -y

- name: Verify production run
run: npm run test -y
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"scripts": {
"build": "nuxt build",
"typecheck": "nuxt typecheck",
"test": "npm run typecheck && npm run build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"prod": "nuxt build && node .output/server/index.mjs",
Expand Down
Loading