066144208e
Code Quality: Super-Linter / Super-Linter (push) Failing after 1s
HashiCorp: Compliance / copywrite (push) Failing after 3s
GitHub Action: Self-Test / Test `setup-packer` (push) Failing after 1h11m55s
Code Quality: TypeScript / Node.js (20.x) (push) Failing after 1h11m50s
from https://hermes.hashicorp.services/document/1kwq2o70u_WNn-SHxL0zPB94ImMMGHiaEXitMczdx7uQ
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
---
|
|
|
|
name: "GitHub Action: Self-Test"
|
|
|
|
on:
|
|
push:
|
|
|
|
env:
|
|
PRODUCT_VERSION: "1.10.0"
|
|
|
|
jobs:
|
|
setup-packer:
|
|
name: Test `setup-packer`
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
|
|
|
- name: Setup `packer` (using local GitHub Action)
|
|
uses: "./"
|
|
id: setup
|
|
with:
|
|
version: ${{ env.PRODUCT_VERSION }}
|
|
|
|
- name: Print `$PATH` for `packer`
|
|
run: which packer
|
|
|
|
- name: Print `packer` version
|
|
run: packer version
|
|
|
|
- name: Validate `packer` version is accurate
|
|
run: "packer version | grep --silent 'Packer v${{ env.PRODUCT_VERSION }}'"
|
|
|
|
- name: Run `packer fmt`
|
|
run: packer fmt -check "./test/hello-world.pkr.hcl"
|
|
|
|
- name: Setup `packer` with an invalid version (using local GitHub Action)
|
|
uses: "./"
|
|
id: invalid_version
|
|
with:
|
|
version: "invalid_version"
|
|
continue-on-error: true
|
|
|
|
- name: Validate invalid version failed
|
|
if: steps.invalid_version.outcome == 'success'
|
|
run: echo "Installing an invalid version expected to fail but did not" && exit 1
|
|
|
|
- name: Setup `packer` with `latest` version (using local GitHub Action)
|
|
uses: "./"
|
|
id: latest_version
|
|
|
|
- name: Print `packer` version
|
|
run: packer version
|