| name: CLI Test |
| |
| 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-latest |
| job_name: |
| - linux_apisix_current_luarocks |
| - linux_apisix_current_luarocks_in_customed_nginx |
| |
| runs-on: ${{ matrix.platform }} |
| timeout-minutes: 30 |
| env: |
| SERVER_NAME: ${{ matrix.job_name }} |
| OPENRESTY_VERSION: default |
| |
| steps: |
| - name: Check out code |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| with: |
| submodules: recursive |
| |
| - name: Cache deps |
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 |
| env: |
| cache-name: cache-deps |
| with: |
| path: deps |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.job_name }}-${{ hashFiles('apisix-master-0.rockspec') }} |
| |
| - name: Linux launch common services |
| run: | |
| project_compose_ci=ci/pod/docker-compose.common.yml make ci-env-up |
| ./ci/prepare_filesystem_mcp.sh |
| |
| - name: Linux Before install |
| run: sudo ./ci/${{ matrix.job_name }}_runner.sh before_install |
| |
| - name: Linux Install |
| run: | |
| sudo --preserve-env=OPENRESTY_VERSION \ |
| ./ci/${{ matrix.job_name }}_runner.sh do_install |
| |
| - name: Linux Script |
| run: | |
| sudo chmod +x /home/runner |
| sudo ./ci/${{ matrix.job_name }}_runner.sh script |