Container Structure Tests Action
GitHub Action that leverages Google´s Container Structure Tests to run unit tests on your Docker images.
steps: uses: brpaz/structure-tests-action@v1 with: image: myimage:latest configFile: structure-tests.yaml
Required The image name to test
Required The path to the structure tests configuration file. Defaults to
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
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:
Copyright © 2019 Bruno Paz.
This project is MIT licensed.