Closed OriHoch closed 3 years ago
This action - https://github.com/hashicorp/packer-plugin-scaffolding/blob/main/.github/workflows/test-plugin-example.yml - is triggered by hand because it needs goreleaser
finishes first.
please have the acceptance test run automatically on every push to main branch
Acceptance test means the workflow above or just unit tests?
the workflow above
But it won't work until you create a tag and let goreleaser
finishes its job.
You can check other packers. All of them don't run it automatically https://github.com/hashicorp/packer-plugin-googlecompute/blob/main/.github/workflows/test-plugin-example.yml
for the packer-plugin-googlecompute they seem to run tests in circleci - https://github.com/hashicorp/packer-plugin-googlecompute/blob/main/.circleci/config.yml
Regarding our acceptance test - it should compile a binary for linux and then run the acceptance test on it (create an image)
@OriHoch The acceptance test runs automatically now after goreleaser
finishes
please have the test run on every push to main branch - we should run the test before releasing
e.g. https://github.com/hashicorp/packer-plugin-scaffolding/blob/main/.github/workflows/test-plugin-example.yml
Check Hashicorp guidelines to make sure we will pass their review - https://www.packer.io/docs/plugins/packer-integration-program#3-dev-test