Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 035bfc83c0 | |||
| 0966b7dad2 | |||
| 80b96a025d | |||
| 91c8ed82be | |||
| 81d3765390 |
@@ -1,53 +0,0 @@
|
||||
---
|
||||
|
||||
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
|
||||
- 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
|
||||
@@ -1,25 +0,0 @@
|
||||
---
|
||||
|
||||
name: "HashiCorp: Compliance"
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
copywrite:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
with:
|
||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: hashicorp/setup-copywrite@32638da2d4e81d56a0764aa1547882fc4d209636 # v1.1.3
|
||||
|
||||
- run: copywrite headers --plan
|
||||
|
||||
- run: copywrite license --plan
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
|
||||
name: "Code Quality: Super-Linter"
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
superlinter:
|
||||
name: Super-Linter
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
with:
|
||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Lint Code with Super-Linter
|
||||
uses: github/super-linter/slim@4e51915f4a812abf59fed160bb14595c0a38a9e7 # v6
|
||||
env:
|
||||
VALIDATE_ALL_CODEBASE: true
|
||||
DEFAULT_BRANCH: "main"
|
||||
DISABLE_ERRORS: false
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
JAVASCRIPT_DEFAULT_STYLE: "prettier"
|
||||
VALIDATE_JSON: true
|
||||
VALIDATE_MD: true
|
||||
@@ -1,45 +0,0 @@
|
||||
---
|
||||
|
||||
name: "Code Quality: TypeScript"
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
nodejs:
|
||||
name: Node.js
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
PACKAGES: "@vercel/ncc prettier"
|
||||
|
||||
strategy:
|
||||
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version:
|
||||
- 20.x
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install global NPM packages
|
||||
run: npm install --global ${PACKAGES}
|
||||
|
||||
- name: Install Action-specific NPM Packages
|
||||
run: npm install-clean
|
||||
|
||||
- name: Build TypeScript code
|
||||
run: |
|
||||
npm run-script fmt \
|
||||
&& \
|
||||
npm run-script build
|
||||
Generated
+18
-15
@@ -219,14 +219,14 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.13.5",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz",
|
||||
"integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==",
|
||||
"version": "1.16.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.16.0.tgz",
|
||||
"integrity": "sha512-6hp5CwvTPlN2A31g5dxnwAX0orzM7pmCRDLnZSX772mv8WDqICwFjowHuPs04Mc8deIld1+ejhtaMn5vp6b+1w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.11",
|
||||
"follow-redirects": "^1.16.0",
|
||||
"form-data": "^4.0.5",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
"proxy-from-env": "^2.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/bn.js": {
|
||||
@@ -364,9 +364,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.15.11",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
|
||||
"integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
|
||||
"version": "1.16.0",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
|
||||
"integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
@@ -577,10 +577,13 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/proxy-from-env": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
||||
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
||||
"license": "MIT"
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
|
||||
"integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/safer-buffer": {
|
||||
"version": "2.1.2",
|
||||
@@ -624,9 +627,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "6.24.1",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.24.1.tgz",
|
||||
"integrity": "sha512-sC+b0tB1whOCzbtlx20fx3WgCXwkW627p4EA9uM+/tNNPkSS+eSEld6pAs9nDv7WbY1UUljBMYPtu9BCOrCWKA==",
|
||||
"version": "6.24.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.24.0.tgz",
|
||||
"integrity": "sha512-lVLNosgqo5EkGqh5XUDhGfsMSoO8K0BAN0TyJLvwNRSl4xWGZlCVYsAIpa/OpA3TvmnM01GWcoKmc3ZWo5wKKA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.17"
|
||||
|
||||
+2
-1
@@ -30,6 +30,7 @@
|
||||
"typescript": "^5.5.4"
|
||||
},
|
||||
"overrides": {
|
||||
"undici": "6.24.1"
|
||||
"axios": "^1.15.0",
|
||||
"undici": "6.24.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user