support for storage to implement custom resource synchro #2101
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
golangci: | |
name: Lint with golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.54 | |
vertify: | |
name: Vertify import alias, vendor, codegen, crds | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: ${{ github.workspace }} | |
WORKSPACE: ${{ github.workspace }}/src/github.com/clusterpedia-io/clusterpedia | |
defaults: | |
run: | |
working-directory: ${{ env.WORKSPACE }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ env.WORKSPACE }} | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- run: hack/verify-import-aliases.sh | |
- run: hack/verify-vendor.sh | |
- run: hack/verify-codegen.sh | |
- run: hack/verify-crds.sh | |
build: | |
name: Build | |
needs: vertify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | |
fetch-depth: 0 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Compile | |
run: make all | |
test: | |
name: Unit test | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- run: make test | |
e2e-test: | |
name: E2e test | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | |
fetch-depth: 0 | |
- name: Run e2e test | |
run: ./test/test.sh | |
- name: Upload logs | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: e2e-logs-${{ github.run_id }} | |
path: ${{ github.workspace }}/test/logs-* |