Files
os-autotest/.github/workflows/smoke-test.yml
2026-04-16 16:59:48 +08:00

25 lines
759 B
YAML

name: Run smoke test on SG2044
on:
workflow_dispatch:
env:
TESTSUITE: ${{ vars.TESTSUITE }}
PKGTEST: ${{ vars.PKGTEST }}
RESULT_DIR: ${{ vars.RESULT_DIR }}
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
mkdir .os-autotest
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