add Chinese plugin_development.md & update example #641
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- "site/**" | |
- "**/*.md" | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: | |
- "site/**" | |
- "**/*.md" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | |
cancel-in-progress: true | |
env: | |
IN_CI: true | |
jobs: | |
unit-test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Test | |
run: make unit-test | |
plugins-integration-test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Set up services | |
run: | | |
make start-service | |
- name: Build | |
run: make build-test-so | |
- name: Test | |
run: make plugins-integration-test | |
- name: Upload logs | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
# upload artifact can be found in https://github.com/mosn/htnn/actions/runs/$id | |
name: ci-logs | |
path: ./test-envoy | |
controller-test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./controller | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: binary cache | |
uses: actions/cache@v4 | |
with: | |
path: ./controller/bin | |
key: ${{ runner.os }}-${{ hashFiles('./controller/Makefile') }} | |
- name: Set up services | |
run: | | |
make start-controller-service | |
- name: Test | |
run: make test |