mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 03:42:08 +08:00
Update e2e-test.yml
This commit is contained in:
parent
ae5b7d7fca
commit
6fdd5d1faf
45
.github/workflows/e2e-test.yml
vendored
45
.github/workflows/e2e-test.yml
vendored
@ -73,14 +73,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Docker Operations
|
- name: Docker Operations
|
||||||
run: |
|
run: |
|
||||||
sudo make init
|
|
||||||
sudo docker compose up -d
|
sudo docker compose up -d
|
||||||
|
bash bootstrap.sh
|
||||||
|
mage
|
||||||
sudo sleep 20
|
sudo sleep 20
|
||||||
|
|
||||||
- name: Module Operations
|
- name: Module Operations
|
||||||
run: |
|
run: |
|
||||||
sudo make tidy
|
sudo go mod tidy
|
||||||
sudo make tools.verify.go-gitlint
|
echo "===========> Verifying go-gitlint is installed"
|
||||||
|
if [ ! -f ./_output/tools/go-gitlint ]; then
|
||||||
|
GOBIN=./_output/tools make tools.install.go-gitlint
|
||||||
|
echo "===========> Installing The default installation path is /home/ubuntu/DF/open-im-server/_output/tools/go-gitlint"
|
||||||
|
go install github.com/marmotedu/go-gitlint/cmd/go-gitlint@latest
|
||||||
|
echo "===========> go-gitlint is installed in /home/ubuntu/DF/open-im-server/_output/tools/go-gitlint"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
- name: Build, Start(make build && make start)
|
- name: Build, Start(make build && make start)
|
||||||
run: |
|
run: |
|
||||||
@ -90,7 +98,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo ./scripts/install/install.sh -s
|
sudo ./scripts/install/install.sh -s
|
||||||
|
|
||||||
- name: Exec OpenIM API test (make test-api)
|
# - name: Exec OpenIM API test (make test-api)
|
||||||
|
- name: Exec OpenIM test (make test)
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./tmp
|
mkdir -p ./tmp
|
||||||
touch ./tmp/test.md
|
touch ./tmp/test.md
|
||||||
@ -98,23 +107,27 @@ jobs:
|
|||||||
echo "## OpenIM API Test" >> ./tmp/test.md
|
echo "## OpenIM API Test" >> ./tmp/test.md
|
||||||
echo "<details><summary>Command Output for OpenIM API Test</summary>" >> ./tmp/test.md
|
echo "<details><summary>Command Output for OpenIM API Test</summary>" >> ./tmp/test.md
|
||||||
echo "<pre><code>" >> ./tmp/test.md
|
echo "<pre><code>" >> ./tmp/test.md
|
||||||
sudo make test-api | tee -a ./tmp/test.md
|
echo "===========> Run api test"
|
||||||
|
./scripts/install/test.sh
|
||||||
|
echo "===========> Run api test" >> ./tmp/test.md
|
||||||
|
./scripts/install/test.sh >> ./tmp/test.md
|
||||||
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-api
|
echo "===========> Run api test"
|
||||||
|
./scripts/install/test.sh
|
||||||
|
|
||||||
- name: Exec OpenIM E2E Test (make test-e2e)
|
# - name: Exec OpenIM E2E Test (make test-e2e)
|
||||||
run: |
|
# run: |
|
||||||
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
|
||||||
echo "<pre><code>" >> ./tmp/test.md
|
# echo "<pre><code>" >> ./tmp/test.md
|
||||||
sudo make test-e2e | tee -a ./tmp/test.md
|
# sudo make test-e2e | tee -a ./tmp/test.md
|
||||||
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
|
# 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user