mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 16:32:12 +08:00 
			
		
		
		
	Bumps the github-actions group with 20 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `2` | `4` | | [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) | `3` | `4` | | [actions/github-script](https://github.com/actions/github-script) | `6` | `7` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `5.0.0` | `5.5.1` | | [codecov/codecov-action](https://github.com/codecov/codecov-action) | `3` | `4` | | [github/codeql-action](https://github.com/github/codeql-action) | `2` | `3` | | [ad-m/github-push-action](https://github.com/ad-m/github-push-action) | `0.6.0` | `0.8.0` | | [actions/dependency-review-action](https://github.com/actions/dependency-review-action) | `3` | `4` | | [actions/cache](https://github.com/actions/cache) | `3` | `4` | | [actions/setup-go](https://github.com/actions/setup-go) | `4` | `5` | | [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) | `3.7.0` | `4.0.0` | | [actions/first-interaction](https://github.com/actions/first-interaction) | `1.2.0` | `1.3.0` | | [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) | `1.8.0` | `1.9.3` | | [peter-evans/create-issue-from-file](https://github.com/peter-evans/create-issue-from-file) | `4` | `5` | | [dessant/lock-threads](https://github.com/dessant/lock-threads) | `4` | `5` | | [actions/setup-node](https://github.com/actions/setup-node) | `2` | `4` | | [alex-page/github-project-automation-plus](https://github.com/alex-page/github-project-automation-plus) | `0.8.3` | `0.9.0` | | [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) | `5` | `6` | | [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) | `5` | `6` | | [actions/stale](https://github.com/actions/stale) | `8` | `9` | Updates `actions/checkout` from 2 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v4) Updates `peter-evans/create-or-update-comment` from 3 to 4 - [Release notes](https://github.com/peter-evans/create-or-update-comment/releases) - [Commits](https://github.com/peter-evans/create-or-update-comment/compare/v3...v4) Updates `actions/github-script` from 6 to 7 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6...v7) Updates `docker/metadata-action` from 5.0.0 to 5.5.1 - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](https://github.com/docker/metadata-action/compare/v5.0.0...v5.5.1) Updates `codecov/codecov-action` from 3 to 4 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v4) Updates `github/codeql-action` from 2 to 3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) Updates `ad-m/github-push-action` from 0.6.0 to 0.8.0 - [Release notes](https://github.com/ad-m/github-push-action/releases) - [Commits](https://github.com/ad-m/github-push-action/compare/v0.6.0...v0.8.0) Updates `actions/dependency-review-action` from 3 to 4 - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/v3...v4) Updates `actions/cache` from 3 to 4 - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v3...v4) Updates `actions/setup-go` from 4 to 5 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) Updates `golangci/golangci-lint-action` from 3.7.0 to 4.0.0 - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.7.0...v4.0.0) Updates `actions/first-interaction` from 1.2.0 to 1.3.0 - [Release notes](https://github.com/actions/first-interaction/releases) - [Commits](https://github.com/actions/first-interaction/compare/v1.2.0...v1.3.0) Updates `lycheeverse/lychee-action` from 1.8.0 to 1.9.3 - [Release notes](https://github.com/lycheeverse/lychee-action/releases) - [Commits](https://github.com/lycheeverse/lychee-action/compare/v1.8.0...v1.9.3) Updates `peter-evans/create-issue-from-file` from 4 to 5 - [Release notes](https://github.com/peter-evans/create-issue-from-file/releases) - [Commits](https://github.com/peter-evans/create-issue-from-file/compare/v4...v5) Updates `dessant/lock-threads` from 4 to 5 - [Release notes](https://github.com/dessant/lock-threads/releases) - [Changelog](https://github.com/dessant/lock-threads/blob/main/CHANGELOG.md) - [Commits](https://github.com/dessant/lock-threads/compare/v4...v5) Updates `actions/setup-node` from 2 to 4 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2...v4) Updates `alex-page/github-project-automation-plus` from 0.8.3 to 0.9.0 - [Release notes](https://github.com/alex-page/github-project-automation-plus/releases) - [Commits](https://github.com/alex-page/github-project-automation-plus/compare/v0.8.3...v0.9.0) Updates `peter-evans/create-pull-request` from 5 to 6 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v5...v6) Updates `release-drafter/release-drafter` from 5 to 6 - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6) Updates `actions/stale` from 8 to 9 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v8...v9) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-or-update-comment dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/metadata-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: ad-m/github-push-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/dependency-review-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/first-interaction dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: lycheeverse/lychee-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: peter-evans/create-issue-from-file dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: dessant/lock-threads dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: alex-page/github-project-automation-plus dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			300 lines
		
	
	
		
			8.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			300 lines
		
	
	
		
			8.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # Copyright © 2023 OpenIM open source community. All rights reserved.
 | |
| #
 | |
| # Licensed under the Apache License, Version 2.0 (the "License");
 | |
| # you may not use this file except in compliance with the License.
 | |
| # You may obtain a copy of the License at
 | |
| #
 | |
| #     http://www.apache.org/licenses/LICENSE-2.0
 | |
| #
 | |
| # Unless required by applicable law or agreed to in writing, software
 | |
| # distributed under the License is distributed on an "AS IS" BASIS,
 | |
| # 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 Aotu Build and Install
 | |
| 
 | |
| on: 
 | |
|   push:
 | |
|     branches:
 | |
|         - main
 | |
|         - release-*
 | |
|     paths-ignore:
 | |
|         - "docs/**"
 | |
|         - "README.md"
 | |
|         - "README_zh-CN.md"
 | |
|         - "**.md"
 | |
|         - "docs/**"
 | |
|         - "CONTRIBUTING.md"
 | |
|   pull_request:
 | |
|     branches:
 | |
|         - main
 | |
|         - release-*
 | |
|     paths-ignore:
 | |
|         - "README.md"
 | |
|         - "README_zh-CN.md"
 | |
|         - "CONTRIBUTING/**"
 | |
|         - "**.md"
 | |
|         - "docs/**"
 | |
| 
 | |
| env:
 | |
|   GO_VERSION: "1.19"
 | |
|   GOLANGCI_VERSION: "v1.50.1"
 | |
| 
 | |
| jobs:
 | |
|   openim:
 | |
|     name: Test with go ${{ matrix.go_version }} on ${{ matrix.os }}
 | |
|     runs-on: ${{ matrix.os }}
 | |
|     permissions:
 | |
|         contents: write
 | |
|         pull-requests: write
 | |
|     environment:
 | |
|       name: openim
 | |
|     strategy:
 | |
|       matrix:
 | |
|         go_version: ["1.19","1.20","1.21"]
 | |
|         os: [ubuntu-latest]
 | |
|     steps:
 | |
|     - name: Setup
 | |
|       uses: actions/checkout@v4
 | |
|       
 | |
|     - name: Set up Go ${{ matrix.go_version }}
 | |
|       uses: actions/setup-go@v5
 | |
|       with:
 | |
|         go-version: ${{ matrix.go_version }}
 | |
|       id: go
 | |
| 
 | |
|     - name: Install Task
 | |
|       uses: arduino/setup-task@v1
 | |
|       with:
 | |
|         version: '3.x' # If available, use the latest major version that's compatible
 | |
|         repo-token: ${{ secrets.GITHUB_TOKEN }}
 | |
| 
 | |
|     - name: Module Operations
 | |
|       run: |
 | |
|         sudo make tidy
 | |
|         sudo make tools.verify.go-gitlint
 | |
| 
 | |
|     - name: Format Code
 | |
|       run: sudo make format
 | |
|       continue-on-error: true
 | |
| 
 | |
|     - name: Generate Files
 | |
|       run: make gen
 | |
|       continue-on-error: true
 | |
| 
 | |
|     - name: Build Source
 | |
|       run: sudo make build
 | |
| 
 | |
|     - name: Build multiarch PLATFORMS
 | |
|       if: startsWith(github.ref, 'refs/heads/release-')
 | |
|       run: |
 | |
|         sudo make multiarch
 | |
| 
 | |
|     - name: Cleanup Build
 | |
|       run: sudo make clean
 | |
| 
 | |
|     - name: Set Current Directory
 | |
|       id: set_directory
 | |
|       run: echo "::set-output name=directory::$(pwd)"
 | |
|       continue-on-error: true
 | |
| 
 | |
|     - name: Collect and Display Test Coverage
 | |
|       id: collect_coverage
 | |
|       run: |
 | |
|         cd ${{ steps.set_directory.outputs.directory }}
 | |
|         make cover
 | |
|         echo "::set-output name=coverage_file::./_output/tmp/coverage.out"
 | |
|         echo "Test Coverage:"
 | |
|         cat ${{ steps.collect_coverage.outputs.coverage_file }}
 | |
|       continue-on-error: true
 | |
| 
 | |
|   openim-start:
 | |
|     name: Test OpenIM install/start on ${{ matrix.os }}-${{ matrix.arch }}
 | |
|     runs-on: ${{ matrix.os }}
 | |
|     permissions:
 | |
|         contents: write
 | |
|         pull-requests: write
 | |
|     environment:
 | |
|       name: openim
 | |
|     strategy:
 | |
|       matrix:
 | |
|         go_version: ["1.21"]
 | |
|         os: ["ubuntu-latest"]
 | |
|     steps:
 | |
|     - name: Checkout and Install OpenIM
 | |
|       uses: actions/checkout@v4
 | |
|     - name: Install Task
 | |
|       uses: arduino/setup-task@v1
 | |
|       with:
 | |
|         version: '3.x' # If available, use the latest major version that's compatible
 | |
|         repo-token: ${{ secrets.GITHUB_TOKEN }}
 | |
|     - name: Run OpenIM make install start
 | |
|       run: |
 | |
|         sudo make install
 | |
| 
 | |
|     # - name: Check the OpenIM environment and status
 | |
|     #   run: |
 | |
|     #     sudo docker images
 | |
|     #     sudo docker ps
 | |
| 
 | |
|     - name: Check the OpenIM environment and status
 | |
|       if: runner.os == 'Linux' && matrix.arch == 'amd64'
 | |
|       id: docker_info
 | |
|       run: |
 | |
|         sleep 30
 | |
|         echo "images<<EOF" >> $GITHUB_ENV
 | |
|         sudo docker images >> $GITHUB_ENV
 | |
|         echo "EOF" >> $GITHUB_ENV
 | |
|         echo "containers<<EOF" >> $GITHUB_ENV
 | |
|         sudo docker ps >> $GITHUB_ENV
 | |
|         echo "EOF" >> $GITHUB_ENV
 | |
| 
 | |
|     - name: Comment PR
 | |
|       uses: thollander/actions-comment-pull-request@v2
 | |
|       if: runner.os == 'Linux' && matrix.arch == 'amd64'
 | |
|       with:
 | |
|         message: |
 | |
|           > [!TIP]
 | |
|           > Run make install to check the status
 | |
| 
 | |
|           ### Docker Images:
 | |
|           <details><summary>Click to expand docker images</summary>
 | |
|           ```bash
 | |
|           ${{ env.images }}
 | |
|           ```
 | |
|           </details>
 | |
| 
 | |
|           ### Docker Processes:
 | |
|           <details><summary>Click to expand docker ps</summary>
 | |
|           ```bash
 | |
|           ${{ env.containers }}
 | |
|           ```
 | |
|           </details>
 | |
|         GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
 | |
| 
 | |
|   execute-scripts:
 | |
|     name: Execute OpenIM Script On ${{ matrix.os }}-${{ matrix.arch }}
 | |
|     runs-on: ${{ matrix.os }}
 | |
|     permissions:
 | |
|         contents: write
 | |
|         pull-requests: write
 | |
|     environment:
 | |
|       name: openim
 | |
|     strategy:
 | |
|       matrix:
 | |
|         go_version: ["1.21"]
 | |
|         os: ["ubuntu-latest", "macos-latest"]
 | |
|         arch: [arm64, armv7, amd64]
 | |
|     steps:
 | |
|     - name: Checkout code
 | |
|       uses: actions/checkout@v4
 | |
| 
 | |
|     - name: Set up Go ${{ matrix.go_version }}
 | |
|       uses: actions/setup-go@v5
 | |
|       with:
 | |
|         go-version: ${{ matrix.go_version }}
 | |
|       id: go
 | |
| 
 | |
|     - name: Install Task
 | |
|       uses: arduino/setup-task@v1
 | |
|       with:
 | |
|         version: '3.x' # If available, use the latest major version that's compatible
 | |
|         repo-token: ${{ secrets.GITHUB_TOKEN }}
 | |
| 
 | |
|     # - name: Install latest Bash (macOS only)
 | |
|     #   if: runner.os == 'macOS' && matrix.arch == 'arm64'
 | |
|     #   run: |
 | |
|     #     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
 | |
|     #     brew update
 | |
|     
 | |
|     #     brew install bash
 | |
|     #     brew install gnu-sed
 | |
|     
 | |
|     #     echo "/usr/local/bin" >> $GITHUB_PATH
 | |
|     #     echo "$(brew --prefix)/opt/gnu-sed/libexec/gnubin" >> $GITHUB_PATH
 | |
|     #   continue-on-error: true
 | |
| 
 | |
|     - name: Set up Docker for Ubuntu
 | |
|       if: runner.os == 'Linux'
 | |
|       run: |
 | |
|         sudo make init
 | |
|         sudo docker compose up -d
 | |
|         sudo sleep 20
 | |
| 
 | |
|     # - name: Set up Docker for macOS
 | |
|     #   if: runner.os == 'macOS' && matrix.arch == 'arm64'
 | |
|     #   run: |
 | |
|     #     brew install --cask docker
 | |
|     #     open /Applications/Docker.app
 | |
| 
 | |
|     #     sleep 10
 | |
|     #     docker-compose --version || brew install docker-compose
 | |
| 
 | |
|     #     docker-compose up -d
 | |
|     #     sleep 20
 | |
| 
 | |
|     - name: Module Operations for Ubuntu
 | |
|       if: runner.os == 'Linux'
 | |
|       run: |
 | |
|         sudo make tidy
 | |
|         sudo make tools.verify.go-gitlint
 | |
| 
 | |
|     # - name: Module Operations for macOS
 | |
|     #   if: runner.os == 'macOS'
 | |
|     #   run: |
 | |
|     #     make tidy
 | |
|     #     make tools.verify.go-gitlint
 | |
| 
 | |
|     - name: Build, Start, Check Services and Print Logs for Ubuntu
 | |
|       if: runner.os == 'Linux'
 | |
|       run: |
 | |
|         sudo make build
 | |
|         sudo make start
 | |
|         sudo make check
 | |
| 
 | |
|     - name: Restart Services and Print Logs for Ubuntu
 | |
|       if: runner.os == 'Linux' && matrix.arch == 'amd64'
 | |
|       run: |
 | |
|         sudo make restart
 | |
|         sudo make check
 | |
| 
 | |
|     - name: Build, Start, Check Services and Print Logs for macOS
 | |
|       if: runner.os == 'macOS' && matrix.arch == 'arm64'
 | |
|       run: |
 | |
|         make build
 | |
| 
 | |
|   openim-test-build-image:
 | |
|     name: Build OpenIM Docker Image
 | |
|     runs-on: ubuntu-latest
 | |
|     permissions:
 | |
|         contents: write
 | |
|         pull-requests: write
 | |
|     environment:
 | |
|       name: openim
 | |
|     steps:
 | |
|     - name: Checkout code
 | |
|       uses: actions/checkout@v4
 | |
|     - name: Set up Go ${{ matrix.go_version }}
 | |
|       uses: actions/setup-go@v5
 | |
|       with:
 | |
|         go-version: ${{ matrix.go_version }}
 | |
|       id: go
 | |
| 
 | |
|     - name: Install Task
 | |
|       uses: arduino/setup-task@v1
 | |
|       with:
 | |
|         version: '3.x' # If available, use the latest major version that's compatible
 | |
|         repo-token: ${{ secrets.GITHUB_TOKEN }}
 | |
| 
 | |
|     - name: Test Docker Build
 | |
|       run: |
 | |
|         sudo make init
 | |
|         sudo make image
 | |
| 
 | |
|     - name: Get OpenIM Docker Images Status
 | |
|       id: docker_processes
 | |
|       run: |
 | |
|         sudo docker images
 | |
|         sudo docker ps
 |