Skip to content

Commit

Permalink
dynamically create plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rnro committed Jan 23, 2025
1 parent 3c5b627 commit e2d4cab
Show file tree
Hide file tree
Showing 41 changed files with 152 additions and 734 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/matrices/plugin-tests.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"config":[{"name":"Plugin tests (6.0)","swift_version":"6.0","runner":"ubuntu-latest","image":"swift:6.0-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-6.1)","swift_version":"nightly-6.1","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-6.1-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-main)","swift_version":"nightly-main","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-main-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s https://raw.githubusercontent.com/grpc/grpc-swift-protobuf/package_plugins/dev/plugin-tests.sh | bash","command_arguments":""}]}
{"config":[{"name":"Plugin tests (6.0)","swift_version":"6.0","runner":"ubuntu-latest","image":"swift:6.0-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s http://raw.githubusercontent.com/grpc/grpc-swift-protobuf/main/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-6.1)","swift_version":"nightly-6.1","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-6.1-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s http://raw.githubusercontent.com/grpc/grpc-swift-protobuf/main/dev/plugin-tests.sh | bash","command_arguments":""},{"name":"Plugin tests (nightly-main)","swift_version":"nightly-main","runner":"ubuntu-latest","image":"swiftlang/swift:nightly-main-jammy","platform":"Linux","setup_command":"apt-get update -y -q && apt-get install -y -q curl protobuf-compiler","command":"curl -s http://raw.githubusercontent.com/grpc/grpc-swift-protobuf/main/dev/plugin-tests.sh | bash","command_arguments":""}]}
7 changes: 7 additions & 0 deletions IntegrationTests/PluginTests/Resources/Foo/foo-messages.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Leading trivia.
syntax = "proto3";

package foo;

message FooInput {}
message FooOutput {}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import PackageDescription

let package = Package(
var package = Package(
name: "grpc-adopter",
platforms: [
.macOS(.v15),
Expand All @@ -27,12 +27,11 @@ let package = Package(
.visionOS(.v2),
],
dependencies: [
.package(
path: "../../../../grpc-swift-protobuf"
),
// Dependency on grpc-swift-protobuf to be added by setup-plugin-tests.sh script

.package(
url: "https://github.com/grpc/grpc-swift.git",
exact: "2.0.0-beta.3"
branch: "main"
),
],
targets: [
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e2d4cab

Please sign in to comment.