Skip to content

Commit

Permalink
ci: add simple type check and build capabilities on Gh Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vzrenggamani committed Dec 30, 2024
1 parent 50851dd commit ba96209
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build-capabilities.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build Capability & Type Check

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build with Next.js
run: pnpm next build

type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install
- name: Type Check
run: pnpm tsc --noEmit

0 comments on commit ba96209

Please sign in to comment.