Upgrade api deps to 0.15.0 #361
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: GoPreSubmit | |
on: | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
pull_request: | |
branches: | |
- main | |
- release-* | |
env: | |
# Common versions | |
GO_VERSION: '1.22' | |
GO_REQUIRED_MIN_VERSION: '' | |
GOPATH: '/home/runner/work/multicluster-controlplane/go' | |
defaults: | |
run: | |
working-directory: go/src/open-cluster-management.io/multicluster-controlplane | |
jobs: | |
check: | |
name: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
path: go/src/open-cluster-management.io/multicluster-controlplane | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Check | |
run: make check | |
verify: | |
name: verify | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
path: go/src/open-cluster-management.io/multicluster-controlplane | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Verify | |
run: make verify | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
path: go/src/open-cluster-management.io/multicluster-controlplane | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Build | |
run: make vendor && make build | |
integration: | |
name: integration | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
path: go/src/open-cluster-management.io/multicluster-controlplane | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
timeout-minutes: 15 | |
- name: Test integration | |
run: make test-integration | |
e2e: | |
name: e2e | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
path: go/src/open-cluster-management.io/multicluster-controlplane | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Set Image label | |
id: vars | |
run: | | |
echo "::set-output name=label::$(git rev-parse --short ${{ github.sha }})" | |
- name: Build image | |
run: make image | |
env: | |
IMAGE_NAME: quay.io/open-cluster-management/multicluster-controlplane:${{ steps.vars.outputs.label }} | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
timeout-minutes: 15 | |
- name: Run e2e test | |
run: | | |
make test-e2e | |
env: | |
IMAGE_NAME: quay.io/open-cluster-management/multicluster-controlplane:${{ steps.vars.outputs.label }} |