diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index becbf6e..8253e5d 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,16 +15,13 @@ jobs: node-version: [18.x, 20.x, 22.x] steps: - # Checkout the repository - uses: actions/checkout@v4 - # Setup Node.js - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - # Cache node_modules and npm dependencies - name: Cache npm dependencies uses: actions/cache@v3 with: @@ -33,22 +30,17 @@ jobs: restore-keys: | ${{ runner.os }}-node-${{ matrix.node-version }}- - # Install dependencies cleanly - name: Install dependencies run: npm ci - # Build the project (if build script exists) - name: Build project run: npm run build --if-present - # Run tests - name: Run tests run: npm test - # Optional checks (if a check script exists) - name: Run checks - run: npm run check || echo "No check script found, skipping." + run: npm run check || echo 'No check script found, skipping.' - # Feedback/logging - name: Feedback - run: echo "✅ Node.js ${{ matrix.node-version }}: CI workflow completed successfully." + run: echo '✅ Node.js ${{ matrix.node-version }}: CI workflow completed successfully.'