github.heygears.com/openimsdk/tools@v0.0.49/.github/workflows/pull-request.yml (about) 1 # Copyright © 2023 OpenIM. All rights reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 name: Github Pull Request 16 on: 17 workflow_dispatch: 18 schedule: 19 - cron: '0 0 * * *' 20 21 permissions: 22 contents: write 23 pull-requests: write 24 25 jobs: 26 build: 27 runs-on: ubuntu-latest 28 steps: 29 - name: checkout 30 uses: actions/checkout@v4 31 with: 32 fetch-depth: 0 33 34 - uses: actions/setup-node@v4 35 - name: Setup Go 36 uses: actions/setup-go@v5 37 - name: Run go modules tidy 38 run: | 39 sudo apt-get install jq 40 sudo make tidy 41 sudo make tools.verify.go-gitlint 42 echo "Run go modules tidy successfully" 43 continue-on-error: true 44 45 - name: Run go format and lint 46 run: | 47 sudo make format 48 echo "Run go format successfully" 49 continue-on-error: true 50 51 - name: Run go lint 52 run: | 53 sudo make lint 54 echo "Run go lint successfully" 55 continue-on-error: true 56 57 - name: Generate all necessary files, such as error code files 58 run: | 59 make gen.docgo.doc 60 make gen 61 echo "Generate all necessary files successfully" 62 continue-on-error: true 63 64 - name: Run unit test and get test coverage 65 run: | 66 make cover 67 echo "Run unit test and get test coverage successfully" 68 continue-on-error: true 69 70 - name: OpenIM verify copyright 71 run: | 72 sudo make add-copyright 73 echo "OpenIM verify successfully" 74 continue-on-error: true 75 76 - name: Create Pull Request 77 uses: peter-evans/create-pull-request@v6 78 with: 79 token: ${{ secrets.BOT_GITHUB_TOKEN }} 80 commit-message: "cicd: bump League Patch" 81 author: kubbot <3293172751ysy@gmail.com> 82 committer: kubbot <3293172751ysy@gmail.com> 83 # signoff: false 84 # draft: false 85 branch: "asf-auto-updates" 86 assignees: cubxxw 87 reviewers: cubxxw 88 title: "[Auto PR 🤖] Bump League Patch auto PR" 89 body: | 90 I am a PR generated by robot automation. 91 92 Review criteria: 93 94 - [ ] Disenchanter can connect and issue actions 95 96 Github Actions Status: 97 98 [](https://github.com/openimsdk/open-im-server/actions/workflows/pull-request.yml) 99 100 This is an automated PR. 101 <sub>[workflow](https://github.com/openimsdk/open-im-server/blob/main/.github/workflows/pull-request.yml).</sub> 102 labels: | 103 kind/documentation 104 enhancement 105 report