Skip to content

codewonser added

codewonser added #11

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master, feature/github-actions-practice ]
pull_request:
branches: [ master ]
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # Use Node 24 runtime for actions
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22' # Use Node.js 22 (latest LTS)
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test -- --passWithNoTests --watchAll=false
- name: Build project
run: npm run build