{"id":4208,"date":"2024-10-15T09:21:41","date_gmt":"2024-10-15T16:21:41","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/"},"modified":"2024-10-15T09:21:41","modified_gmt":"2024-10-15T16:21:41","slug":"automate-couchbase-tests-github-actions","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/pt\/automate-couchbase-tests-github-actions\/","title":{"rendered":"Testing Couchbase with GitHub Actions and CBSH"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><span>I have recently been working on an exciting project, a wasmCloud capability provider for Couchbase. We are building this in the open with the fine folks at<\/span>\u00a0<a href=\"https:\/\/cosmonic.com\/\"><span>Cosmonic<\/span><\/a><span>. You can checkout the code <a href=\"https:\/\/github.com\/couchbaselabs\/wasmcloud-provider-couchbase\">in our repository<\/a>.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>And early in every project comes the topic of development life cycle and its infrastructure. How do we automatically run tests of our project involving a Couchbase Server? GitHub provides <a href=\"https:\/\/docs.github.com\/en\/actions\">Actions<\/a> that allows us to execute code in various moments.<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>To create an action, you can either click on the Action tab of your repository or add a file under <\/span><i><span><code>.github\/workflows<\/code><\/span><\/i><span>. There are a lot of different ways to trigger the execution of the action. Like on every <\/span><i><span><code>git push<\/code><\/span><\/i><span>. I just want something simple that makes sure my Couchbase Cluster is still here and accessible through specific secrets or environment variables. So here I will just choose a basic cron expression. The action will be executed every Monday at midnight.<\/span><\/p>\n\n\n<p>[crayon nums=&#8221;false&#8221; lang=&#8221;default&#8221; decode=&#8221;true&#8221;]name: test Couchbase Credential<br \/>\non:<br \/>\n\u00a0\u00a0schedule:<br \/>\n\u00a0\u00a0\u00a0\u00a0&#8211; cron:\u00a0 &#8216;0 0 * * 1&#8242;[\/crayon]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>Now, about secrets and environment variables. Of course, some of them are, well, secrets. And must be managed as such. Thankfully GitHub thought of everything and gives us a way to set up secrets or environment variables per repository or organization. If you go under Settings\/Secrets and variables\/actions, you should see the following page:<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-16449\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/image1-5-1024x1008-1.png\" alt=\"\" width=\"900\" height=\"886\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>This allows you to define any secret or environment variable you may need for your actions, and more. Here you can see I have set up:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span><strong>COUCHBASE_BUCKET<\/strong> &#8211; The name of the Bucket I want to use<\/span><\/li>\n\n\n<li><span><strong>COUCHBASE_CONNECTION_STRING<\/strong> &#8211; The full Couchbase connection String, as given in the <\/span><i><span>connect<\/span><\/i><span> Capella tab for instance<\/span><\/li>\n\n\n<li><span><strong>COUCHBASE_USERNAME<\/strong> &#8211; The username used to connect to the cluster<\/span><\/li>\n\n\n<li><span><strong>COUCHBASE_PASSWORD<\/strong> &#8211; The password used to connect to the cluster<\/span><\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><span>Now comes the time to write the test. All I want to do is make sure I have a working connection to a cluster, in order to show my collaborators how the secrets\/env variables can be used. A simple way to test a connection is to use the<\/span>\u00a0<a href=\"https:\/\/couchbase.sh\/\"><span>Couchbase Shell<\/span><\/a><span> aka cbsh. It can be installed easily on Ubuntu. All you need is to download and untar it. This can be done in a couple steps:<\/span><\/p>\n\n\n<p>[crayon nums=&#8221;false&#8221; lang=&#8221;default&#8221; decode=&#8221;true&#8221;]jobs:<br \/>\n\u00a0\u00a0test_credential:<br \/>\n\u00a0\u00a0\u00a0\u00a0runs-on: ubuntu-latest<br \/>\n\u00a0\u00a0\u00a0\u00a0name: Test that given env variable works<br \/>\n\u00a0\u00a0\u00a0\u00a0steps:<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0shell: bash<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0env:<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0COUCHBASE_CONNECTION_STRING: ${{ secrets.COUCHBASE_CONNECTION_STRING }}<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0COUCHBASE_USERNAME: ${{ secrets.COUCHBASE_USERNAME }}<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0COUCHBASE_PASSWORD: ${{ secrets.COUCHBASE_PASSWORD }}<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8211; run: wget https:\/\/github.com\/couchbaselabs\/couchbase-shell\/releases\/download\/v0.75.1\/cbsh-x86_64-unknown-linux-gnu.tar.gz<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8211; run: tar -xvzf cbsh-x86_64-unknown-linux-gnu.tar.gz<br \/>\n[\/crayon]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From there the shell is available simply by running <i><code>.\/cbsh<\/code><\/i>. Notice here that the <i><code>runs-on<\/code><\/i> option gives us which container to use to run the action, <i><code>shell<\/code><\/i> is set to bash and <i><code>env<\/code><\/i> makes the secrets available as environment variables.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>Because this shell is based on <a href=\"https:\/\/www.nushell.sh\/\">nushell<\/a>\u00a0and a password will be prompted, I could not pipe it straight up after the invocation like this:<\/span><\/p>\n\n\n<p>[crayon nums=&#8221;false&#8221; wrap=&#8221;true&#8221; lang=&#8221;default&#8221; decode=&#8221;true&#8221;]echo $COUCHBASE_PASSWORD | .\/cbsh &#8211;username $COUCHBASE_USERNAME&#8211;connstr $COUCHASE_CONNECTION_STRING[\/crayon]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>Because this does not work, I had to use a <\/span><i><span>cbsh<\/span><\/i><span> configuration file instead. And sadly the syntax is a bit tricky for multi-line text formatting and piping. Here, I am creating a new variable called <em>CONFIG<\/em>, that contains the environment variable values, putting the result in <em>$GITHUB_ENV<\/em>, which allows me to pass it to the next step, which echos it in the config file:<\/span><\/p>\n\n\n<p>[crayon nums=&#8221;false&#8221; lang=&#8221;default&#8221; decode=&#8221;true&#8221;]- run: |<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0CONFIG=$(cat &lt;&lt; EOF<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0version = 1<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[[cluster]]<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0identifier = &#8220;local&#8221;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0connstr = &#8220;$COUCHBASE_CONNECTION_STRING&#8221;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0username = &#8220;$COUCHBASE_USERNAME&#8221;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0password = &#8220;$COUCHBASE_PASSWORD&#8221;<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0EOF<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0)<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0echo &#8220;CONFIG&lt;&lt;EOF&#8221; &gt;&gt; $GITHUB_ENV<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0echo &#8220;$CONFIG&#8221; &gt;&gt; $GITHUB_ENV<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0echo &#8220;EOF&#8221; &gt;&gt; $GITHUB_ENV<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8211; run: echo &#8220;$CONFIG&#8221; &gt;&gt; config<br \/>\n[\/crayon]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the config file is all set, <i>cbsh<\/i> can be invoked like so:<\/p>\n\n\n<p>[crayon nums=&#8221;false&#8221; lang=&#8221;default&#8221; decode=&#8221;true&#8221;]\u00a0 \u00a0 \u00a0 &#8211; run: .\/cbsh &#8211;config-dir . -c cb-env[\/crayon]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>The complete example is available in <a href=\"https:\/\/github.com\/couchbaselabs\/wasmcloud-provider-couchbase\/blob\/main\/.github\/workflows\/capella_connection_test.yml\">our repository as a YML file<\/a>.<\/span><span>\u00a0And this is what a successful run looks like:<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-16450\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/image2-3-1024x821-1.png\" alt=\"\" width=\"900\" height=\"722\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>So there you go, you now know how to connect to Couchbase in a GitHub Action. And you also got acquainted with Couchbase Shell &#8211; give it a try to do \u00a0<a href=\"https:\/\/www.couchbase.com\/blog\/couchbase-shell-data-manipulation\/\">more fun things<\/a> like migrating all collections, except the <\/span><em><span>_default<\/span><\/em><span> collection:<\/span><\/p>\n\n\n<p>[crayon nums=&#8221;false&#8221; wrap=&#8221;true&#8221; lang=&#8221;default&#8221; decode=&#8221;true&#8221;]collections &#8211;clusters &#8220;On-Prem-Cluster&#8221; &#8211;bucket &#8220;travel-sample&#8221; | select scope collection | where $it.scope != &#8220;_default&#8221; | where $it.collection != &#8220;_default&#8221; | each { |it| collections create $it.collection &#8211;clusters &#8220;Capella-Cluster&#8221; &#8211;bucket &#8220;travel-sample-import&#8221; &#8211;scope $it.scope[\/crayon]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span>And we have more AI-friendly features coming to Couchbase Shell, stay tuned!<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">References<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/couchbaselabs\/wasmcloud-provider-couchbase\">wasmCloud provider for Couchbase (GitHub)<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.couchbase.com\/blog\/couchbase-shell-data-manipulation\/\">Using Couchbase Shell to Transform and Write Data (Blog)<\/a><\/li>\n\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I have recently been working on an exciting project, a wasmCloud capability provider for Couchbase. We are building this in the open with the fine folks at\u00a0Cosmonic. You can checkout the code in our repository. And early in every project comes the topic of development life cycle and its infrastructure. How do we automatically run [&hellip;]<\/p>\n","protected":false},"author":49,"featured_media":4207,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_acf":"","footnotes":""},"categories":[178,301,54,339],"tags":[294,889,890,701,907],"ppma_author":[110],"class_list":["post-4208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-connectors","category-cloud","category-couchbase-server","category-monitoring","tag-actions","tag-cbshell","tag-couchbase-shell","tag-github","tag-nushell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Testing Couchbase with GitHub Actions and CBSH - The Couchbase Blog<\/title>\n<meta name=\"description\" content=\"Automate Couchbase connection tests in GitHub Actions using environment variables, secrets and Couchbase Shell, including set up steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/pt\/automate-couchbase-tests-github-actions\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing Couchbase with GitHub Actions and CBSH\" \/>\n<meta property=\"og:description\" content=\"Automate Couchbase connection tests in GitHub Actions using environment variables, secrets and Couchbase Shell, including set up steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/pt\/automate-couchbase-tests-github-actions\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-15T16:21:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/blog-github-actions-couchbase.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1256\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Laurent Doguin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ldoguin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Laurent Doguin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/\"},\"author\":{\"name\":\"Laurent Doguin\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c0aa9b8f1ed51b7a9e2f7cb755994a5e\"},\"headline\":\"Testing Couchbase with GitHub Actions and CBSH\",\"datePublished\":\"2024-10-15T16:21:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/\"},\"wordCount\":813,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/blog-github-actions-couchbase.png\",\"keywords\":[\"actions\",\"cbshell\",\"couchbase shell\",\"GitHub\",\"nushell\"],\"articleSection\":[\"Connectors\",\"Couchbase Capella\",\"Couchbase Server\",\"Monitoring\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/\",\"name\":\"Testing Couchbase with GitHub Actions and CBSH - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/blog-github-actions-couchbase.png\",\"datePublished\":\"2024-10-15T16:21:41+00:00\",\"description\":\"Automate Couchbase connection tests in GitHub Actions using environment variables, secrets and Couchbase Shell, including set up steps.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/blog-github-actions-couchbase.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/blog-github-actions-couchbase.png\",\"width\":2400,\"height\":1256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/automate-couchbase-tests-github-actions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Testing Couchbase with GitHub Actions and CBSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c0aa9b8f1ed51b7a9e2f7cb755994a5e\",\"name\":\"Laurent Doguin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b8c466908092b46634af916b6921f30187a051e4367ded7ac9b1a3f2c5692fd2?s=96&d=mm&r=g12929ce99397769f362b7a90d6b85071\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b8c466908092b46634af916b6921f30187a051e4367ded7ac9b1a3f2c5692fd2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b8c466908092b46634af916b6921f30187a051e4367ded7ac9b1a3f2c5692fd2?s=96&d=mm&r=g\",\"caption\":\"Laurent Doguin\"},\"description\":\"Laurent is a nerdy metal head who lives in Paris. He mostly writes code in Java and structured text in AsciiDoc, and often talks about data, reactive programming and other buzzwordy stuff. He is also a former Developer Advocate for Clever Cloud and Nuxeo where he devoted his time and expertise to helping those communities grow bigger and stronger. He now runs Developer Relations at Couchbase.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/ldoguin\"],\"honorificPrefix\":\"Mr\",\"birthDate\":\"1985-06-07\",\"gender\":\"male\",\"award\":[\"Devoxx Champion\",\"Couchbase Legend\"],\"knowsAbout\":[\"Java\"],\"knowsLanguage\":[\"English\",\"French\"],\"jobTitle\":\"Director Developer Relation & Strategy\",\"worksFor\":\"Couchbase\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/pt\\\/author\\\/laurent-doguin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Testing Couchbase with GitHub Actions and CBSH - The Couchbase Blog","description":"Automate Couchbase connection tests in GitHub Actions using environment variables, secrets and Couchbase Shell, including set up steps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/pt\/automate-couchbase-tests-github-actions\/","og_locale":"pt_BR","og_type":"article","og_title":"Testing Couchbase with GitHub Actions and CBSH","og_description":"Automate Couchbase connection tests in GitHub Actions using environment variables, secrets and Couchbase Shell, including set up steps.","og_url":"https:\/\/www.couchbase.com\/blog\/pt\/automate-couchbase-tests-github-actions\/","og_site_name":"The Couchbase Blog","article_published_time":"2024-10-15T16:21:41+00:00","og_image":[{"width":2400,"height":1256,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/blog-github-actions-couchbase.png","type":"image\/png"}],"author":"Laurent Doguin","twitter_card":"summary_large_image","twitter_creator":"@ldoguin","twitter_misc":{"Written by":"Laurent Doguin","Est. reading time":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/"},"author":{"name":"Laurent Doguin","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c0aa9b8f1ed51b7a9e2f7cb755994a5e"},"headline":"Testing Couchbase with GitHub Actions and CBSH","datePublished":"2024-10-15T16:21:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/"},"wordCount":813,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/blog-github-actions-couchbase.png","keywords":["actions","cbshell","couchbase shell","GitHub","nushell"],"articleSection":["Connectors","Couchbase Capella","Couchbase Server","Monitoring"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/","url":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/","name":"Testing Couchbase with GitHub Actions and CBSH - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/blog-github-actions-couchbase.png","datePublished":"2024-10-15T16:21:41+00:00","description":"Automate Couchbase connection tests in GitHub Actions using environment variables, secrets and Couchbase Shell, including set up steps.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/blog-github-actions-couchbase.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/blog-github-actions-couchbase.png","width":2400,"height":1256},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/automate-couchbase-tests-github-actions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Testing Couchbase with GitHub Actions and CBSH"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","width":"1024","height":"1024","caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c0aa9b8f1ed51b7a9e2f7cb755994a5e","name":"Laurent Doguin","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/b8c466908092b46634af916b6921f30187a051e4367ded7ac9b1a3f2c5692fd2?s=96&d=mm&r=g12929ce99397769f362b7a90d6b85071","url":"https:\/\/secure.gravatar.com\/avatar\/b8c466908092b46634af916b6921f30187a051e4367ded7ac9b1a3f2c5692fd2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b8c466908092b46634af916b6921f30187a051e4367ded7ac9b1a3f2c5692fd2?s=96&d=mm&r=g","caption":"Laurent Doguin"},"description":"Laurent is a nerdy metal head who lives in Paris. He mostly writes code in Java and structured text in AsciiDoc, and often talks about data, reactive programming and other buzzwordy stuff. He is also a former Developer Advocate for Clever Cloud and Nuxeo where he devoted his time and expertise to helping those communities grow bigger and stronger. He now runs Developer Relations at Couchbase.","sameAs":["https:\/\/x.com\/ldoguin"],"honorificPrefix":"Mr","birthDate":"1985-06-07","gender":"male","award":["Devoxx Champion","Couchbase Legend"],"knowsAbout":["Java"],"knowsLanguage":["English","French"],"jobTitle":"Director Developer Relation & Strategy","worksFor":"Couchbase","url":"https:\/\/www.couchbase.com\/blog\/pt\/author\/laurent-doguin\/"}]}},"acf":[],"authors":[{"term_id":110,"user_id":49,"is_guest":0,"slug":"laurent-doguin","display_name":"Laurent Doguin","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/b8c466908092b46634af916b6921f30187a051e4367ded7ac9b1a3f2c5692fd2?s=96&d=mm&r=g","author_category":"","first_name":"Laurent","last_name":"Doguin","user_url":"","job_title":"","description":"Laurent is a nerdy metal head who lives in Paris. He mostly writes code in Java and structured text in AsciiDoc, and often talks about data, reactive programming and other buzzwordy stuff. He is also a former Developer Advocate for Clever Cloud and Nuxeo where he devoted his time and expertise to helping those communities grow bigger and stronger. He now runs Developer Relations at Couchbase."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/4208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=4208"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/4208\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/4207"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=4208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=4208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=4208"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=4208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}