{"id":16690788,"url":"https://github.com/actionshub/test-kitchen","last_synced_at":"2025-03-17T00:33:18.267Z","repository":{"id":40299186,"uuid":"256955016","full_name":"actionshub/test-kitchen","owner":"actionshub","description":"Repository for the actionshub-test-kitchen Github Action","archived":false,"fork":false,"pushed_at":"2024-05-01T13:49:51.000Z","size":126,"stargazers_count":9,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-29T06:00:57.689Z","etag":null,"topics":["action","ci","github-action","terraform-managed","test-kitchen"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/actionshub-test-kitchen","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actionshub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"actionshub"}},"created_at":"2020-04-19T08:56:21.000Z","updated_at":"2024-05-01T13:49:17.000Z","dependencies_parsed_at":"2024-04-13T18:52:20.121Z","dependency_job_id":"ea7b03a9-c542-4bd1-a991-d64d797df4d5","html_url":"https://github.com/actionshub/test-kitchen","commit_stats":{"total_commits":16,"total_committers":7,"mean_commits":"2.2857142857142856","dds":0.625,"last_synced_commit":"6e6b61feb197118be2cbbb39795c6b089afe17b5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionshub%2Ftest-kitchen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionshub%2Ftest-kitchen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionshub%2Ftest-kitchen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionshub%2Ftest-kitchen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actionshub","download_url":"https://codeload.github.com/actionshub/test-kitchen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221373420,"owners_count":16807599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","ci","github-action","terraform-managed","test-kitchen"],"created_at":"2024-10-12T16:05:25.811Z","updated_at":"2025-03-17T00:33:18.260Z","avatar_url":"https://github.com/actionshub.png","language":"JavaScript","funding_links":["https://opencollective.com/actionshub"],"categories":[],"sub_categories":[],"readme":"# test-kitchen\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA Github Action to run Test Kitchen on your cookbooks\n\nNote you will need to accept the Chef license, you can find more information at \u003chttps://docs.chef.io/chef_license.html\u003e\n\n## Usage\n\nThis example shows how to use dokken with this action to test linux servers\n\n```yaml\nname: kitchen\n\non: [pull_request]\n\njobs:\n  dokken:\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        os:\n          - centos-7\n          - centos-8\n        suite: ['default']\n      fail-fast: false\n    steps:\n    - name: Check out code\n      uses: actions/checkout@main\n    - name: Install Chef\n      uses: actionshub/chef-install@main\n    - name: Test-Kitchen\n      uses: actionshub/test-kitchen@main\n      with:\n        suite: ${{ matrix.suite }}\n        os: ${{ matrix.os }}\n      env:\n        CHEF_LICENSE: accept-no-persist\n        KITCHEN_LOCAL_YAML: kitchen.dokken.yml\n```\n\nThis example shows you how to use Macos with this action\nThis example uses seperate `converge` and `verify` actions\n\n```yaml\nname: kitchen\non: [pull_request]\njobs:\n  macos:\n    needs: [mdl, yamllint, delivery]\n    runs-on: macos-latest\n    steps:\n      - name: Check out code\n        uses: actions/checkout@main\n      - name: Install Chef\n        uses: actionshub/chef-install@main\n      - name: Kitchen Converge\n        uses: actionshub/test-kitchen@main\n        env:\n          CHEF_LICENSE: accept-no-persist\n          KITCHEN_LOCAL_YAML: kitchen.macos.yml\n          TERM: xterm-256color\n        with:\n          suite: adoptopenjdk-14\n          os: macos\n          action: converge\n      - name: Source Profile for JAVA_HOME\n        run: |\n          source /etc/profile\n          echo \"sourced profile for JAVA_HOME\"\n          echo \"New JAVA home after Chef run is: ${JAVA_HOME}\"\n      - name: Kitchen Verify\n        uses: actionshub/test-kitchen@master\n        env:\n          CHEF_LICENSE: accept-no-persist\n          KITCHEN_LOCAL_YAML: kitchen.macos.yml\n          TERM: xterm-256color\n        with:\n          suite: adoptopenjdk-14\n          os: macos\n          action: verify\n          working-directory: './cookbook'\n```\n\n## Input\n\nWe support the following Input Variables\n\n|name| default| description|\n|--- |------- |----------- |\n|suite|  | the name of the suite to run |\n|os |  | Which os to run on |\n\n## Environment Variables\n\nWe recommend the following environment variables\n\n|name| default| description|\n|--- |------- |----------- |\n|CHEF_LICENSE|  | Set to `accept-no-persist` to accept the chef licensing rules |\n|KITCHEN_LOCAL_YAML |  | Can be used to megre in another yaml file for test-kitchen, eg `kitchen.dokken.yml` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionshub%2Ftest-kitchen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factionshub%2Ftest-kitchen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionshub%2Ftest-kitchen/lists"}