Skip to content

Commit

Permalink
Merge pull request #2294 from shiftstack/goversions
Browse files Browse the repository at this point in the history
Bump Go to 1.14
  • Loading branch information
EmilienM committed Dec 10, 2021
2 parents 8780806 + cfaf0b7 commit 18a1ee5
Show file tree
Hide file tree
Showing 176 changed files with 209 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/reauth-retests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on: [push, pull_request]
name: Reauth retests
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version:
- "1"

steps:
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- uses: actions/checkout@v2

- name: Run reauth retests
run: |
./script/unittest
18 changes: 13 additions & 5 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ on: [push, pull_request]
name: Unit Testing
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version:
- "1.15"
- "1.14"
- "1"

env:
GO111MODULE: "on"
Expand All @@ -22,9 +23,7 @@ jobs:

- name: Setup environment
run: |
go get golang.org/x/crypto/ssh
go get github.com/wadey/gocovmerge
go get github.com/mattn/goveralls
go get golang.org/x/tools/cmd/goimports
- name: Run go vet
Expand All @@ -34,9 +33,18 @@ jobs:
- name: Run unit tests
run: |
./script/coverage
./script/unittest
./script/format
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: cover.out
flag-name: Go-${{ matrix.go-version }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || baremetal || allocations
// +build acceptance baremetal allocations

package httpbasic
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/baremetal/httpbasic/ports_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || baremetal || ports
// +build acceptance baremetal ports

package httpbasic
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/baremetal/noauth/allocations_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || baremetal || allocations
// +build acceptance baremetal allocations

package noauth
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/baremetal/noauth/ports_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || baremetal || ports
// +build acceptance baremetal ports

package noauth
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/baremetal/v1/allocations_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || baremetal || allocations
// +build acceptance baremetal allocations

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/baremetal/v1/nodes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || baremetal || nodes
// +build acceptance baremetal nodes

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/baremetal/v1/ports_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || baremetal || ports
// +build acceptance baremetal ports

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/apiversions_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package blockstorage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package extensions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package extensions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package extensions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package extensions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package extensions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package extensions
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/noauth/snapshots_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package noauth
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/noauth/volumes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package noauth
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v1/snapshots_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v1/volumes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v1/volumetypes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v2/snapshots_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v2/volumes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v3/quotaset_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || quotasets
// +build acceptance quotasets

package v3
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v3/snapshots_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v3
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v3/volumes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v3
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/blockstorage/v3/volumetypes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || blockstorage
// +build acceptance blockstorage

package v3
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance
// +build acceptance

package openstack
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/actions_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || actions
// +build acceptance clustering actions

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/clusters_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || policies
// +build acceptance clustering policies

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/events_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || events
// +build acceptance clustering events

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/nodes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || policies
// +build acceptance clustering policies

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/policies_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || policies
// +build acceptance clustering policies

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/policytypes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || policytypes
// +build acceptance clustering policytypes

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/profiles_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || policies
// +build acceptance clustering policies

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/profiletypes_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || profiletypes
// +build acceptance clustering profiletypes

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/receivers_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || policies
// +build acceptance clustering policies

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/clustering/v1/webhooktrigger_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || clustering || webhooks
// +build acceptance clustering webhooks

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/aggregates_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || aggregates
// +build acceptance compute aggregates

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/attachinterfaces_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || servers
// +build acceptance compute servers

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/availabilityzones_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || availabilityzones
// +build acceptance compute availabilityzones

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/bootfromvolume_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || bootfromvolume
// +build acceptance compute bootfromvolume

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/defsecrules_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || defsecrules
// +build acceptance compute defsecrules

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/diagnostics_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || limits
// +build acceptance compute limits

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/extension_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || extensions
// +build acceptance compute extensions

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/flavors_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || flavors
// +build acceptance compute flavors

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/floatingip_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || servers
// +build acceptance compute servers

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/hypervisors_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || hypervisors
// +build acceptance compute hypervisors

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/images_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || images
// +build acceptance compute images

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/instance_actions_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || limits
// +build acceptance compute limits

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/keypairs_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || keypairs
// +build acceptance compute keypairs

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/limits_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || limits
// +build acceptance compute limits

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/migrate_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || servers
// +build acceptance compute servers

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/network_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || servers
// +build acceptance compute servers

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/quotaset_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || quotasets
// +build acceptance compute quotasets

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/remoteconsoles_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || remoteconsoles
// +build acceptance compute remoteconsoles

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/rescueunrescue_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || rescueunrescue
// +build acceptance compute rescueunrescue

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/secgroup_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || secgroups
// +build acceptance compute secgroups

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/servergroup_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || servergroups
// +build acceptance compute servergroups

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/servers_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || servers
// +build acceptance compute servers

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/services_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || services
// +build acceptance compute services

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/tenantnetworks_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || servers
// +build acceptance compute servers

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/usage_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || usage
// +build acceptance compute usage

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/compute/v2/volumeattach_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || compute || volumeattach
// +build acceptance compute volumeattach

package v2
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/container/v1/capsules_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || containers || capsules
// +build acceptance containers capsules

package v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || containerinfra
// +build acceptance containerinfra

package v1
Expand Down
1 change: 1 addition & 0 deletions acceptance/openstack/containerinfra/v1/clusters_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build acceptance || containerinfra
// +build acceptance containerinfra

package v1
Expand Down
Loading

0 comments on commit 18a1ee5

Please sign in to comment.