Skip to content

Commit eaabf90

Browse files
Create manually_test.yml
1 parent 01458f8 commit eaabf90

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/manually_test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Manually Test
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
branch:
6+
description: 'Test Branch'
7+
required: true
8+
default: 'main'
9+
os:
10+
description: 'Operating System'
11+
required: true
12+
default: 'ubuntu-latest'
13+
options:
14+
- 'windows-latest'
15+
- 'ubuntu-latest'
16+
node_version:
17+
description: 'Node Environment'
18+
required: true
19+
default: '20.x'
20+
jobs:
21+
test:
22+
name: Test
23+
timeout-minutes: 30
24+
continue-on-error: true
25+
runs-on: ${{ github.event.inputs.os }}
26+
steps:
27+
- name: Checkout to code
28+
uses: actions/checkout@v4
29+
with:
30+
ref: ${{ github.event.inputs.branch }}
31+
- name: install Node js Version 20
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ github.event.inputs.node_version }}
35+
- name: install dependency
36+
run: npm install
37+
- name: Run test
38+
run: npm run test

0 commit comments

Comments
 (0)