Skip to content
GitHub Action that leverages Google´s Container Structure test to run unit tests on your container images.
Makefile Dockerfile Shell
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.editorconfig
.hadolint.yml
.pre-commit-config.yaml
.releaserc
.yamllint
Dockerfile
LICENSE
Makefile
README.md
action.yml
entrypoint.sh
structure-tests.yaml

README.md

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.

You can’t perform that action at this time.