Skip to content

Commit

Permalink
fix: change pb name for build failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGadvancer committed Aug 2, 2024
2 parents 6a6bc1c + 1009a0f commit 80d6db6
Show file tree
Hide file tree
Showing 102 changed files with 2,495 additions and 1,869 deletions.
4 changes: 1 addition & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.dockerignore

# Ignore build artifacts
_output/
logs/
_output/

# Ignore non-essential documentation
README.md
Expand All @@ -17,8 +17,6 @@ CHANGELOG/
# Ignore testing and linting configuration
.golangci.yml

# Ignore deployment-related files
docker-compose.yaml

# Ignore assets
assets/
Expand Down
59 changes: 0 additions & 59 deletions .github/dependabot.yml

This file was deleted.

121 changes: 77 additions & 44 deletions .github/workflows/chatci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,78 +11,111 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: OpenIM CI
name: OpenIM CI Auto Build

on:
push:
branches:
- main
- develop
- release-*
paths-ignore:
- "docs/**"
- "README.md"
- "README_zh-CN.md"
- "**.md"
- "docs/**"
- "CONTRIBUTING.md"
pull_request:
branches:
- main
- develop
- release-*
paths-ignore:
- "README.md"
- "README_zh-CN.md"
- "CONTRIBUTING.md"
- "CONTRIBUTING/**"
- "**.md"
- "docs/**"

env:
GO_VERSION: "1.19"
GOLANGCI_VERSION: "v1.50.1"
workflow_dispatch:

jobs:
openim:
name: Test with go ${{ matrix.go_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

build-linux:
name: Execute OpenIM Script On Linux
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
environment:
name: openim

strategy:
matrix:
go_version: ["1.21"]
os: [ubuntu-latest]

arch: [arm64, armv7, amd64]

steps:
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
id: go
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: init
run: sudo bash bootstrap.sh
timeout-minutes: 20

- name: Code Typecheck Detector
uses: kubecub/typecheck@main
- name: Checkout chat repository
uses: actions/checkout@v4
with:
repository: 'openimsdk/open-im-server'
path: 'server-repo'

- name: Set up Docker for Linux
run: |
cd ${{ github.workspace }}/server-repo
sudo docker compose up -d
sudo sleep 30 # Increased sleep time for better stability
timeout-minutes: 20 # Increased timeout for Docker setup

- name: Run go modules tidy
run: |
sudo make tidy
- name: Build and Start IM Serevr Services
run: |
cd ${{ github.workspace }}/server-repo
sudo mage
sudo mage start
sudo mage check
- name: Run go format
run: |
sudo make format
echo "Run go format successfully"
continue-on-error: true
- name: Build, Start, Check Services and Print Logs for Linux
run: |
sudo mage
sudo mage start
sudo mage check
- name: Generate all necessary files, such as error code files
run: |
make generate
- name: Restart Services and Print Logs
run: |
sudo mage stop
sudo mage start
sudo mage check
- name: Run unit test and get test coverage
run: |
make cover
continue-on-error: true

# - name: Checkout e2e repository
# uses: actions/checkout@v4
# with:
# repository: "openimsdk/test-e2e"
# path: e2e-repo

- name: Build source code for host platform
run: |
sudo make build
echo "Build source code for host platform successfully"
# - name: Set up Python 3.9
# uses: actions/setup-python@v4
# with:
# python-version: '3.9'

# - name: Install dependencies
# run: |
# cd ${{ github.workspace }}/e2e-repo
# pip install PyYAML webdriver_manager selenium pytest

# - name: Run tests
# run: |
# cd ${{ github.workspace }}/e2e-repo
# pytest main.py

File renamed without changes.
65 changes: 0 additions & 65 deletions .github/workflows/lock-issue.yml

This file was deleted.

Loading

0 comments on commit 80d6db6

Please sign in to comment.