Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

Container Structure Tests

v1.1.0

Container Structure Tests

package

Container Structure Tests

Action that leverages Google´s Container Structure test to run unit tests on your container images'

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Container Structure Tests

uses: brpaz/[email protected]

Learn more about this action in brpaz/structure-tests-action

Choose a version

Container Structure Tests Action

GitHub Action that leverages Google´s Container Structure Tests to run unit tests on your Docker images.

GitHub Action License Commitizen friendly semantic-release

GitHub Actions

Usage

steps:
    uses: brpaz/structure-tests-action@v1
    with:
        image: myimage:latest
        configFile: structure-tests.yaml

Inputs

image

Required The image name to test

configFile

Required The path to the structure tests configuration file. Defaults to structure-tests.yaml

🤝 Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Useful Resources

FAQ

How can I use an envrionment variable as input

Using Environment variables directly as input arguments is not supported by GitHub Actions. You can define an intermidiate step that outputs the desired value and use that value as the input

- name: Get Image name
  id: image_name
  run: echo "##[set-output name=image;]$(echo $TEST_IMAGE_NAME)"

And then use it as input:

image: ${{steps.image_name.outputs.image}}

Author

👤 Bruno Paz

📝 License

Copyright © 2019 Bruno Paz.

This project is MIT licensed.