Skip to content

Commit

Permalink
add feature test github action support
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencheng committed Aug 4, 2024
1 parent 539a5c0 commit 7eaf3af
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go

on:
push:
branches: [ "2024-update" ]
pull_request:
branches: [ "feature-*" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Show go version
run: go version

- name: Run individual feature request test
run: |
. ./funcs.rc
feature_test_x 00001
10 changes: 10 additions & 0 deletions funcs.rc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ echo "syntax: uptestx c0033"
goup ngo task -d ./tests/functests -t $1 -i dev --configdir=./tests/functests
}

feature_test_x(){
echo "syntax: feature_test_x testing_folder"
testing_folder=$1
if [ "${testing_folder}" != "" ];then
goup ngo task -d ./tests/functests/${testing_folder} -t feature -i dev --configdir=./tests/functests
else
echo "Please input a feature test folder name"
fi
}


showcodex(){
echo "syntax: showcodex c0033"
Expand Down
13 changes: 13 additions & 0 deletions tests/features/00001/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
note: |
test task showing feature request test
tasks:

-
name: task
desc: test github action
task:
-
func: shell
do:
- echo "Test github action feature request test"

0 comments on commit 7eaf3af

Please sign in to comment.