zll600 commented on code in PR #10989:
URL: https://github.com/apache/apisix/pull/10989#discussion_r1511980997
##########
.github/workflows/quic.yml:
##########
@@ -0,0 +1,191 @@
+name: QUIC
+
+on:
+ push:
+ branches: [master, 'release/**']
+ paths-ignore:
+ - 'docs/**'
+ - '**/*.md'
+ pull_request:
+ branches: [master, 'release/**']
+ paths-ignore:
+ - 'docs/**'
+ - '**/*.md'
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' &&
github.run_number || github.ref }}
+ cancel-in-progress: true
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ platform:
+ - ubuntu-20.04
+ os_name:
+ - linux_openresty
+ events_module:
+ - lua-resty-worker-events
+ - lua-resty-events
+ test_dir:
+ - t/quic/admin
+
+ runs-on: ${{ matrix.platform }}
+ timeout-minutes: 90
+ env:
+ SERVER_NAME: ${{ matrix.os_name }}
+ OPENRESTY_VERSION: default
+
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v4
+ with:
+ submodules: recursive
+
+ - name: Setup Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: "1.17"
+
+ - name: Cache deps
+ uses: actions/cache@v4
+ env:
+ cache-name: cache-deps
+ with:
+ path: deps
+ key: ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.os_name
}}-${{ hashFiles('apisix-master-0.rockspec') }}
+
+ - name: Extract branch name
+ if: ${{ startsWith(github.ref, 'refs/heads/release/') }}
+ id: branch_env
+ shell: bash
+ run: |
+ echo "version=${GITHUB_REF##*/}" >>$GITHUB_OUTPUT
+ echo "fullname=apache-apisix-${GITHUB_REF##*/}-src.tgz"
>>$GITHUB_OUTPUT
+
+ - name: Extract test type
+ shell: bash
+ id: test_env
+ run: |
+ test_dir="${{ matrix.test_dir }}"
+ if [[ $test_dir =~ 't/quic/plugin' ]]; then
Review Comment:
I will add `t/quic/plugin` in another PR after merging this PR. So I didn't
adjust code here which was copied from build.yml
https://github.com/apache/apisix/blob/17ad90d06a63d6620262d096a554be55cecae047/.github/workflows/build.yml#L76-L84
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]