Skip to content

Commit

Permalink
Add CI workflow for Node.js builds in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rido-min committed Feb 20, 2025
1 parent 28ba3aa commit 822b1ee
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci-node

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22

- name: Build sample projects
run: |
for dir in ./samples/**/nodejs/; do
echo "Building $dir"
(cd "$dir" && npm i && npm run build)
done

0 comments on commit 822b1ee

Please sign in to comment.