Skip to content

Merge pull request #156 from ethanmdavidson/dependabot/go_modules/git… #344

Merge pull request #156 from ethanmdavidson/dependabot/go_modules/git…

Merge pull request #156 from ethanmdavidson/dependabot/go_modules/git… #344

Workflow file for this run

#Runs all the tests! Triggers on push and PR for quick feedback.
#Tests are not very comprehensive right now, so don't put too much faith in this.
name: run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
go-version-file: 'go.mod'
cache: true
- name: Install Tools
run: make prep
- name: Execute tests
run: make test && make testacc
- name: Upload test artifacts for debugging
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b
if: failure()
with:
name: test-debug-artifacts
path: |
datasource/*/git_*_basic_test.pkr.hcl
datasource/*/packer_log_git_*_basic_test.txt
if-no-files-found: ignore