Skip to content

Add CI workflow with workflow_dispatch #1

Add CI workflow with workflow_dispatch

Add CI workflow with workflow_dispatch #1

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 21, Col: 14): Unrecognized named-value: 'dev'. Located at position 23 within expression: inputs.environment || dev
on:
workflow_dispatch:
inputs:
environment:
description: 'Target environment'
required: false
type: string
default: dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
- run: echo "Deploying to ${{ inputs.environment || dev }}..."