diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000000..62b9a820393f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,36 @@ +name: Tests + +on: + - push + - pull_request + +env: + GOPATH: ${{ github.workspace }}/go + +jobs: + test-and-verify: + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.13 + + - uses: actions/checkout@v2 + with: + path: ${{ env.GOPATH }}/src/k8s.io/autoscaler + + - name: Apt-get + run: sudo apt-get install libseccomp-dev -qq + + - name: Prepare + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler + run: hack/install-verify-tools.sh + + - name: Verify + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler + run: hack/verify-all.sh -v + + - name: Test + working-directory: ${{ env.GOPATH }}/src/k8s.io/autoscaler + run: hack/for-go-proj.sh test diff --git a/cluster-autoscaler/cloudprovider/packet/packet_manager_rest.go b/cluster-autoscaler/cloudprovider/packet/packet_manager_rest.go index a30428603990..f9ab5b198271 100644 --- a/cluster-autoscaler/cloudprovider/packet/packet_manager_rest.go +++ b/cluster-autoscaler/cloudprovider/packet/packet_manager_rest.go @@ -43,8 +43,8 @@ import ( ) const ( - packetPrefix = "packet://" - equinixMetalPrefix = "equinixmetal://" + packetPrefix = "packet://" + equinixMetalPrefix = "equinixmetal://" ) type instanceType struct {