Import Scene Test #6773
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Import Scene Test | |
| on: | |
| # Runs every two hours at even hours (0, 2, 4, ...) | |
| schedule: | |
| - cron: "0 */2 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| testCase: | |
| description: "specify a case or skip to run all tests" | |
| default: "" | |
| required: false | |
| jobs: | |
| import-scene-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: './go.mod' | |
| - name: Restore Go modules cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/go/pkg/mod | |
| key: go-${{ runner.os }}-${{ hashFiles('go.mod') }} | |
| restore-keys: | | |
| go-${{ runner.os }}- | |
| - name: Run tests | |
| run: | | |
| if [ -z ${{ github.event.inputs.testCase }} ]; then | |
| echo "Running all tests" | |
| go run gotest.tools/gotestsum@latest --format standard-verbose -- sceneTest/import/* -timeout 30m -args --cid 10278121821273448857 --config "${{ secrets.TEST_CONFIG }}" --test.timeout 30m | |
| else | |
| echo "Running test ${{ github.event.inputs.testCase }}" | |
| go run gotest.tools/gotestsum@latest --format standard-verbose -- sceneTest/import/* -args --cid 10278121821273448857 --config "${{ secrets.TEST_CONFIG }}" --test.run ${{ github.event.inputs.testCase }} | |
| fi |