|
|
@ -56,7 +56,9 @@ jobs:
|
|
|
|
id: go
|
|
|
|
id: go
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run go modules tidy
|
|
|
|
- name: Run go modules tidy
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
@ -68,27 +70,50 @@ jobs:
|
|
|
|
echo "Run go format successfully"
|
|
|
|
echo "Run go format successfully"
|
|
|
|
continue-on-error: true
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
|
|
# - name: Generate all necessary files, such as error code files
|
|
|
|
- name: Generate all necessary files, such as error code files
|
|
|
|
# run: |
|
|
|
|
run: |
|
|
|
|
# make generate
|
|
|
|
make generate
|
|
|
|
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
|
|
# - name: Run unit test and get test coverage
|
|
|
|
- name: Run unit test and get test coverage
|
|
|
|
# run: |
|
|
|
|
run: |
|
|
|
|
# make cover
|
|
|
|
make cover
|
|
|
|
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build source code for host platform
|
|
|
|
- name: Build source code for host platform
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
sudo make build
|
|
|
|
sudo make build
|
|
|
|
echo "Build source code for host platform successfully"
|
|
|
|
echo "Build source code for host platform successfully"
|
|
|
|
|
|
|
|
|
|
|
|
# - name: Collect Test Coverage File
|
|
|
|
- name: OpenIM verify copyright
|
|
|
|
# uses: actions/upload-artifact@v1.0.0
|
|
|
|
run: |
|
|
|
|
# with:
|
|
|
|
sudo make verify-copyright
|
|
|
|
# name: main-output
|
|
|
|
echo "OpenIM verify successfully"
|
|
|
|
# path: _output/tmp/coverage.out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# - name: Set up Docker Buildx
|
|
|
|
- name: Clean all build
|
|
|
|
# uses: docker/setup-buildx-action@v1
|
|
|
|
run: |
|
|
|
|
|
|
|
|
sudo make clean
|
|
|
|
|
|
|
|
echo "Clean all build successfully"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: push OpenIM
|
|
|
|
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
commit_message: Automated Change
|
|
|
|
|
|
|
|
commit_options: '--no-verify --signoff'
|
|
|
|
|
|
|
|
# Optional commit user and author settings
|
|
|
|
|
|
|
|
commit_user_name: kubbot # defaults to "github-actions[bot]"
|
|
|
|
|
|
|
|
commit_user_email: 3293172751ysy@gmail.com # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
|
|
|
|
|
|
|
|
commit_author: Kubbot # defaults to author of the commit that triggered the run
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Collect Test Coverage File
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: main-output
|
|
|
|
|
|
|
|
path: _output/tmp/coverage.out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
|
|
openim-start:
|
|
|
|
openim-start:
|
|
|
|
name: Teat OpenIM make install start on ${{ matrix.os }}
|
|
|
|
name: Teat OpenIM make install start on ${{ matrix.os }}
|
|
|
|