Skip to content

Use NewDynamicRESTMapper instead of NewDisoveryRESTMapper #1615

Use NewDynamicRESTMapper instead of NewDisoveryRESTMapper

Use NewDynamicRESTMapper instead of NewDisoveryRESTMapper #1615

Workflow file for this run

---
name: Consuming Projects
on:
pull_request:
permissions: {}
jobs:
unit-testing:
name: Check subctl
runs-on: ubuntu-latest
steps:
- name: Check out the submariner-operator repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
path: submariner-operator
- name: Check out the subctl repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: submariner-io/subctl
path: subctl
ref: ${{ github.base_ref }}
- name: Check out the shipyard repository
# This is required so that we can run a build involving multiple
# repositories (using LOCAL_BUILD=1)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
repository: submariner-io/shipyard
path: shipyard
ref: ${{ github.base_ref }}
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.21'
check-latest: true
- name: Update the subctl build to use the current submariner-operator
run: |
cd subctl
go mod edit -replace=github.com/submariner-io/submariner-operator=../submariner-operator
go mod tidy
- name: Run Go subctl unit tests
run: make -C subctl LOCAL_BUILD=1 unit