diff --git a/.github/workflows/integration-compute-core.yml b/.github/workflows/integration-compute-core.yml index 246119825..abbb5a2b9 100644 --- a/.github/workflows/integration-compute-core.yml +++ b/.github/workflows/integration-compute-core.yml @@ -2,7 +2,7 @@ # is no need to run them if SQL code or deps haven't changed and you cannot # trigger jobs based on file changes in the same workflow. # See: https://github.com/actions/runner/issues/456 -name: integration-tests-compute-instance_groups +name: integration-tests-compute-core on: push: @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/compute/**' diff --git a/.github/workflows/integration-compute-instance_groups.yml b/.github/workflows/integration-compute-instance_groups.yml index b1e933ca8..9761fa8b9 100644 --- a/.github/workflows/integration-compute-instance_groups.yml +++ b/.github/workflows/integration-compute-instance_groups.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/compute/**' diff --git a/.github/workflows/integration-compute-loadbalancing.yml b/.github/workflows/integration-compute-loadbalancing.yml index f2da2ea7e..420c25944 100644 --- a/.github/workflows/integration-compute-loadbalancing.yml +++ b/.github/workflows/integration-compute-loadbalancing.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/compute/**' diff --git a/.github/workflows/integration-compute-networking.yml b/.github/workflows/integration-compute-networking.yml index 31f880f63..a60543c62 100644 --- a/.github/workflows/integration-compute-networking.yml +++ b/.github/workflows/integration-compute-networking.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/compute/**' diff --git a/.github/workflows/integration-monitoring.yml b/.github/workflows/integration-monitoring.yml index 878512c4e..89fb51524 100644 --- a/.github/workflows/integration-monitoring.yml +++ b/.github/workflows/integration-monitoring.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/google/monitoring.rb' diff --git a/.github/workflows/integration-pubsub.yml b/.github/workflows/integration-pubsub.yml index a9539952b..f92da0017 100644 --- a/.github/workflows/integration-pubsub.yml +++ b/.github/workflows/integration-pubsub.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/google/pubsub.rb' diff --git a/.github/workflows/integration-sql.yml b/.github/workflows/integration-sql.yml index 46f25c871..cd684623b 100644 --- a/.github/workflows/integration-sql.yml +++ b/.github/workflows/integration-sql.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/google/sql.rb' diff --git a/.github/workflows/integration-storage.yml b/.github/workflows/integration-storage.yml index 70e598df8..2ebefa967 100644 --- a/.github/workflows/integration-storage.yml +++ b/.github/workflows/integration-storage.yml @@ -10,7 +10,7 @@ on: pull_request: branches: [ master ] types: [ assigned, opened, synchronize, reopened, labeled ] - # Only run SQL integration tests if SQL code or deps have changed + # Only run integration tests if relevant code or deps have changed paths: # Module-specific paths - 'lib/fog/google/storage.rb' diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..be94e6f53 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.2.2 diff --git a/test/integration/storage/test_objects.rb b/test/integration/storage/test_objects.rb index 6d7f5d5bc..72ac9b5a4 100644 --- a/test/integration/storage/test_objects.rb +++ b/test/integration/storage/test_objects.rb @@ -4,6 +4,7 @@ require "base64" require "tempfile" require "net/http" +require "ostruct" class TestStorageRequests < StorageShared def test_put_object_string