8000 ci: add build workflow on push + PR by aaronjmars · Pull Request #76 · aeonfun/minitor · GitHub
[go: up one dir, main page]

Skip to content
Merged
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
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [main]
pull_request:

# Cancel superseded runs on the same ref so only the latest commit's build matters.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

# `next build` runs the TypeScript compiler and produces the production
# bundle. No secrets needed: with DATABASE_URL unset the app falls back to
# the bundled PGlite driver (see lib/db/client.ts:resolveDatabaseConfig).
- name: Build
run: npm run build
Loading
0