Files
DcsMissionScriptingTools/.github/workflows/publish-install-lua-addon.yml
T
dutchie031 0443871583
publish-vs-code-extensions.yml / Publish VS Code Extension (push) Successful in 8s
Publish Action Release / Derive release metadata (push) Successful in 5s
Publish Install Lua Addon Action / test_action (push) Failing after 18s
Publish Action Release / Publish tags (push) Successful in 21s
Publish Install Lua Addon Action / publish_action (push) Successful in 57s
Added test for publish bundle pipeline
2026-09-10 18:17:39 +02:00

63 lines
1.8 KiB
YAML

name: Publish Install Lua Addon Action
on:
push:
branches:
- main
paths:
- github-actions/install-lua-addon/package.json
permissions:
contents: write
jobs:
## Verify that when the action has been run it actually has the lua addons installed
test_action:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: github-actions/install-lua-addon/package-lock.json
- name: Run Action Locally
uses: ./github-actions/install-lua-addon
with:
destination-path: './some/test/lua-addons'
- name: Verify lua addons were installed
run: |
echo "Listing contents of the Lua addons directory"
ls -la ./some/test/lua-addons
echo "Checking if dcs-types addon was installed"
if [ -d "./some/test/lua-addons/dcs-types" ]; then
echo "✓ dcs-types directory found"
else
echo "✗ dcs-types directory not found"
exit 1
fi
echo "Checking if config.json exists in dcs-types"
if [ -f "./some/test/lua-addons/dcs-types/config.json" ]; then
echo "✓ config.json found"
else
echo "✗ config.json not found"
exit 1
fi
echo "All checks passed!"
publish_action:
uses: ./.github/workflows/_publish-action-release.yml
with:
action-directory: github-actions/install-lua-addon
package-json-path: github-actions/install-lua-addon/package.json
action-name: Install Lua Addon
prefix: install-lua-addon