forked from redrsoe2100/os-autotest
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: Run smoke test on SG2044
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
TESTSUITE: ${{ vars.TESTSUITE }}
|
|
PKGTEST: ${{ vars.PKGTEST }}
|
|
LOGDIR: ${{ vars.LOGDIR }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: openruyi-175
|
|
timeout-minutes: 4320
|
|
steps:
|
|
- name: install tools
|
|
run: sudo dnf install -y git nodejs --refresh
|
|
- uses: https://gitee.com/ci-actions/checkout.git@v3
|
|
- name: run tests
|
|
run: |
|
|
set -x
|
|
DATA_STR="$(date +%Y%m%d%H%M%S)"
|
|
RESULT_DIR="${LOGDIR}/${DATA_STR}"
|
|
export RESULT_DIR="${RESULT_DIR}"
|
|
mkdir -p .os-autotest ${RESULT_DIR}
|
|
echo "$TESTSUITE" | tr ',' '\n' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' | sed '/^\s*$/d' > .os-autotest/testsuite
|
|
echo "$PKGTEST" | tr ',' '\n' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' | sed '/^\s*$/d' > .os-autotest/pkg-install
|
|
bash .github/workflows/scripts/runtest.sh
|
|
|
|
if [ -n "$(find "${RESULT_DIR}/source/suite2cases" -maxdepth 0 -empty)" ]; then
|
|
LOG_WARN "<<< no suite2cases found"
|
|
exit 0
|
|
fi |