-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.43 KB
/
import-console-api-dev.yml
File metadata and controls
43 lines (37 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Import Console Api Test (Dev)
on:
workflow_dispatch:
inputs:
testCase:
description: "specify a case or skip to run all tests"
default: ""
required: false
pull_request:
branches:
- master
jobs:
import-console-api-test-dev:
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/webImport/* -timeout 30m -args --cid 10684095579089091872 --pid 3200488 --oid 30018 --config "${{ secrets.TEST_CONFIG_DEV }}" --test.timeout 30m --test.skip "TestOSSArn.*"
else
echo "Running test ${{ github.event.inputs.testCase }}"
go run gotest.tools/gotestsum@latest --format standard-verbose -- sceneTest/webImport/* -args --cid 10684095579089091872 --pid 3200488 --oid 30018 --config "${{ secrets.TEST_CONFIG_DEV }}" --test.run ${{ github.event.inputs.testCase }}
fi