cicd: update e2e-test fix e2e and api test ci (#2101)

pull/2110/head
Xinwei Xiong 8 months ago committed by GitHub
parent 2d2fa99d2c
commit e795dce696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
name: OpenIM Linux System E2E Test name: OpenIM E2E And API Test
on: on:
workflow_dispatch: workflow_dispatch:
@ -82,7 +82,7 @@ jobs:
sudo make tidy sudo make tidy
sudo make tools.verify.go-gitlint sudo make tools.verify.go-gitlint
- name: Build, Start - name: Build, Start(make build && make start)
run: | run: |
sudo ./scripts/install/install.sh -i sudo ./scripts/install/install.sh -i
@ -90,9 +90,8 @@ jobs:
run: | run: |
sudo ./scripts/install/install.sh -s sudo ./scripts/install/install.sh -s
- name: Exec OpenIM API test - name: Exec OpenIM API test (make test-api)
run: | run: |
sudo make test-api
mkdir -p ./tmp mkdir -p ./tmp
touch ./tmp/test.md touch ./tmp/test.md
echo "# OpenIM Test" >> ./tmp/test.md echo "# OpenIM Test" >> ./tmp/test.md
@ -103,9 +102,10 @@ jobs:
echo "</code></pre>" >> ./tmp/test.md echo "</code></pre>" >> ./tmp/test.md
echo "</details>" >> ./tmp/test.md echo "</details>" >> ./tmp/test.md
- name: Exec OpenIM E2E Test sudo make test-api
- name: Exec OpenIM E2E Test (make test-e2e)
run: | run: |
sudo make test-e2e
echo "" >> ./tmp/test.md echo "" >> ./tmp/test.md
echo "## OpenIM E2E Test" >> ./tmp/test.md echo "## OpenIM E2E Test" >> ./tmp/test.md
echo "<details><summary>Command Output for OpenIM E2E Test</summary>" >> ./tmp/test.md echo "<details><summary>Command Output for OpenIM E2E Test</summary>" >> ./tmp/test.md
@ -114,6 +114,8 @@ jobs:
echo "</code></pre>" >> ./tmp/test.md echo "</code></pre>" >> ./tmp/test.md
echo "</details>" >> ./tmp/test.md echo "</details>" >> ./tmp/test.md
sudo make test-e2e
- name: Comment PR with file - name: Comment PR with file
uses: thollander/actions-comment-pull-request@v2 uses: thollander/actions-comment-pull-request@v2
with: with:
@ -143,4 +145,4 @@ jobs:
PUBLISH_BRANCH: gh-pages PUBLISH_BRANCH: gh-pages
env: env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
continue-on-error: true continue-on-error: true

Loading…
Cancel
Save