plugin refactor for v4 #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and coverage | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
cache: false | |
- run: go generate -tags tools tools/tools.go | |
- uses: hashicorp/setup-packer@main | |
- run: | | |
make build | |
make install | |
packer plugin install github.com/hashicorp/docker | |
- name: go get | |
run: go get ./... | |
- name: unit tests | |
run: make test | |
env: | |
PACKER_ACC: 1 | |
- name: acc tests | |
run: make test-acc | |
- name: e2e tests | |
run: make test-e2e |