mirror of
https://github.com/alibaba/higress.git
synced 2026-06-02 09:07:26 +08:00
optimize ci (#659)
This commit is contained in:
71
.github/workflows/build-and-test-plugin.yaml
vendored
Normal file
71
.github/workflows/build-and-test-plugin.yaml
vendored
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
name: "Build and Test Plugins"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- plugins/**
|
||||||
|
- test/**
|
||||||
|
pull_request:
|
||||||
|
branches: ["*"]
|
||||||
|
paths:
|
||||||
|
- plugins/**
|
||||||
|
- test/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.19
|
||||||
|
# There are too many lint errors in current code bases
|
||||||
|
# uncomment when we decide what lint should be addressed or ignored.
|
||||||
|
# - run: make lint
|
||||||
|
|
||||||
|
higress-wasmplugin-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
# TODO(Xunzhuo): Enable C WASM Filters in CI
|
||||||
|
wasmPluginType: [ GO ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: "Setup Go"
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.19
|
||||||
|
|
||||||
|
- name: Setup Golang Caches
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |-
|
||||||
|
~/.cache/go-build
|
||||||
|
~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-go-${{ github.run_id }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go
|
||||||
|
|
||||||
|
- name: Setup Submodule Caches
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |-
|
||||||
|
envoy
|
||||||
|
istio
|
||||||
|
.git/modules
|
||||||
|
key: ${{ runner.os }}-submodules-new-${{ github.run_id }}
|
||||||
|
restore-keys: ${{ runner.os }}-submodules-new
|
||||||
|
|
||||||
|
- run: git stash # restore patch
|
||||||
|
|
||||||
|
- name: "Run Ingress WasmPlugins Tests"
|
||||||
|
run: GOPROXY="https://proxy.golang.org,direct" PLUGIN_TYPE=${{ matrix.wasmPluginType }} make higress-wasmplugin-test
|
||||||
|
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [higress-wasmplugin-test]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
42
.github/workflows/build-and-test.yaml
vendored
42
.github/workflows/build-and-test.yaml
vendored
@@ -141,48 +141,8 @@ jobs:
|
|||||||
- name: "Run Higress E2E Conformance Tests"
|
- name: "Run Higress E2E Conformance Tests"
|
||||||
run: GOPROXY="https://proxy.golang.org,direct" make higress-conformance-test
|
run: GOPROXY="https://proxy.golang.org,direct" make higress-conformance-test
|
||||||
|
|
||||||
higress-wasmplugin-test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [build]
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
# TODO(Xunzhuo): Enable C WASM Filters in CI
|
|
||||||
wasmPluginType: [ GO ]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: "Setup Go"
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: 1.19
|
|
||||||
|
|
||||||
- name: Setup Golang Caches
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |-
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{ runner.os }}-go-${{ github.run_id }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go
|
|
||||||
|
|
||||||
- name: Setup Submodule Caches
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |-
|
|
||||||
envoy
|
|
||||||
istio
|
|
||||||
.git/modules
|
|
||||||
key: ${{ runner.os }}-submodules-new-${{ github.run_id }}
|
|
||||||
restore-keys: ${{ runner.os }}-submodules-new
|
|
||||||
|
|
||||||
- run: git stash # restore patch
|
|
||||||
|
|
||||||
- name: "Run Ingress WasmPlugins Tests"
|
|
||||||
run: GOPROXY="https://proxy.golang.org,direct" PLUGIN_TYPE=${{ matrix.wasmPluginType }} make higress-wasmplugin-test
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [higress-conformance-test,gateway-conformance-test,higress-wasmplugin-test]
|
needs: [higress-conformance-test,gateway-conformance-test]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user