You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
4.1 KiB
131 lines
4.1 KiB
1 year ago
|
# Copyright © 2023 OpenIM. 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.
|
||
|
|
||
1 year ago
|
name: Github Pull Request
|
||
|
on:
|
||
1 year ago
|
workflow_dispatch:
|
||
|
schedule:
|
||
|
- cron: '0 2 * * *'
|
||
1 year ago
|
|
||
|
permissions:
|
||
|
contents: write
|
||
1 year ago
|
pull-requests: write
|
||
1 year ago
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
1 year ago
|
- name: checkout
|
||
1 year ago
|
uses: actions/checkout@v4
|
||
1 year ago
|
with:
|
||
|
fetch-depth: 0
|
||
|
|
||
1 year ago
|
- uses: actions/setup-node@v4
|
||
1 year ago
|
- name: Setup Go
|
||
10 months ago
|
uses: actions/setup-go@v5
|
||
1 year ago
|
- name: Run go modules tidy
|
||
|
run: |
|
||
10 months ago
|
sudo apt-get install jq
|
||
1 year ago
|
sudo make tidy
|
||
|
sudo make tools.verify.go-gitlint
|
||
|
echo "Run go modules tidy successfully"
|
||
1 year ago
|
continue-on-error: true
|
||
1 year ago
|
|
||
10 months ago
|
- name: Run go format and lint
|
||
1 year ago
|
run: |
|
||
|
sudo make format
|
||
|
echo "Run go format successfully"
|
||
|
continue-on-error: true
|
||
|
|
||
1 year ago
|
- name: Run go lint
|
||
|
run: |
|
||
|
sudo make lint
|
||
|
echo "Run go lint successfully"
|
||
|
continue-on-error: true
|
||
|
|
||
1 year ago
|
- name: Generate all necessary files, such as error code files
|
||
|
run: |
|
||
8 months ago
|
make gen.docgo.doc
|
||
|
make gen
|
||
10 months ago
|
echo "Generate all necessary files successfully"
|
||
|
continue-on-error: true
|
||
|
|
||
|
- name: make init
|
||
|
run: |
|
||
|
export OPENIM_IP=127.0.0.1
|
||
|
export LOG_STORAGE_LOCATION="../logs/"
|
||
10 months ago
|
./scripts/init-config.sh --examples --force
|
||
|
echo "Generate all necessary files successfully"
|
||
|
continue-on-error: true
|
||
|
|
||
8 months ago
|
- name: Generate Versions Including Pre-release Identifiers
|
||
10 months ago
|
run: |
|
||
8 months ago
|
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||
10 months ago
|
echo $latest_tag > pkg/common/config/version
|
||
1 year ago
|
continue-on-error: true
|
||
|
|
||
9 months ago
|
- name: Gen CHANGELOG file
|
||
|
run: |
|
||
|
current_tag=$(git describe --tags --abbrev=0)
|
||
|
version=$(echo "$current_tag" | sed -E 's/^v?([0-9]+)\.([0-9]+)\..*$/\1.\2/')
|
||
|
echo "OpenIM Version: $version"
|
||
|
make tools.install.git-chglog
|
||
|
cd CHANGELOG
|
||
|
git-chglog --tag-filter-pattern "v${version}.*" -o CHANGELOG-${version}.md
|
||
|
cd ..
|
||
|
continue-on-error: true
|
||
|
|
||
1 year ago
|
- name: Run unit test and get test coverage
|
||
|
run: |
|
||
|
make cover
|
||
|
echo "Run unit test and get test coverage successfully"
|
||
|
continue-on-error: true
|
||
|
|
||
|
- name: OpenIM verify copyright
|
||
|
run: |
|
||
|
sudo make add-copyright
|
||
|
echo "OpenIM verify successfully"
|
||
|
continue-on-error: true
|
||
1 year ago
|
|
||
1 year ago
|
- name: Create Pull Request
|
||
10 months ago
|
uses: peter-evans/create-pull-request@v6
|
||
1 year ago
|
with:
|
||
1 year ago
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||
1 year ago
|
commit-message: "cicd: bump League Patch"
|
||
10 months ago
|
author: kubbot <3293172751ysy@gmail.com>
|
||
|
committer: kubbot <3293172751ysy@gmail.com>
|
||
|
# signoff: false
|
||
|
# draft: false
|
||
|
branch: "asf-auto-updates"
|
||
1 year ago
|
assignees: cubxxw
|
||
|
reviewers: cubxxw
|
||
10 months ago
|
title: "[Auto PR 🤖] Bump League Patch auto PR"
|
||
1 year ago
|
body: |
|
||
10 months ago
|
I am a PR generated by robot automation.
|
||
|
|
||
1 year ago
|
Review criteria:
|
||
1 year ago
|
|
||
1 year ago
|
- [ ] Disenchanter can connect and issue actions
|
||
10 months ago
|
|
||
|
Github Actions Status:
|
||
|
|
||
|
[![Github Pull Request](https://github.com/openimsdk/open-im-server/actions/workflows/pull-request.yml/badge.svg)](https://github.com/openimsdk/open-im-server/actions/workflows/pull-request.yml)
|
||
1 year ago
|
|
||
10 months ago
|
This is an automated PR.
|
||
1 year ago
|
<sub>[workflow](https://github.com/openimsdk/open-im-server/blob/main/.github/workflows/pull-request.yml).</sub>
|
||
1 year ago
|
labels: |
|
||
|
kind/documentation
|
||
|
enhancement
|
||
10 months ago
|
report
|