Skip to content

Commit 0ab49e4

Browse files
committed
Add CI workflow with workflow_dispatch
1 parent e2b254f commit 0ab49e4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
environment:
6+
description: 'Target environment'
7+
required: false
8+
type: string
9+
default: dev
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
- run: npm ci
20+
- run: npm test
21+
- run: echo "Deploying to ${{ inputs.environment || dev }}..."

0 commit comments

Comments
 (0)