Skip to content

Add github build workflow #1

Add github build workflow

Add github build workflow #1

Workflow file for this run

name: build
on:
push:
branches:
- '**/*'
workflow_dispatch:
jobs:
build:
name: build
runs-on: ubuntu-24.04
steps:
# https://github.com/actions/checkout
- name: Checkout the repository
uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
cache: npm
- name: Install dependencies
run: |
npm ci
- name: Check source code formatting
run: |
npm run format
- name: Ensure there are no uncommitted changes
run: |
git status --porcelain
test -z "$(git status --porcelain)"