working release #13
Workflow file for this run
This file contains hidden or 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 Action | |
# dummy change | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test-resolve-vars: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test resolve vars action | |
id: test-vars | |
uses: ./ | |
with: | |
static_inputs: | | |
username=testuser | |
environment=development | |
# jinja_inputs: | | |
# greeting='Hello, ' + 'World!' | |
# is_prod=False | |
log_outputs: true | |
- name: Verify outputs | |
run: | | |
# Check static variables | |
if [ "${{ steps.test-vars.outputs.username }}" != "testuser" ]; then | |
echo "ERROR: username output doesn't match expected value" | |
exit 1 | |
fi | |
if [ "${{ steps.test-vars.outputs.environment }}" != "development" ]; then | |
echo "ERROR: environment output doesn't match expected value" | |
exit 1 | |
fi | |
# Check jinja variables | |
# if [ "${{ steps.test-vars.outputs.greeting }}" != "Hello, World!" ]; then | |
# echo "ERROR: greeting output doesn't match expected value" | |
# exit 1 | |
# fi | |
# if [ "${{ steps.test-vars.outputs.is_prod }}" != "False" ]; then | |
# echo "ERROR: is_prod output doesn't match expected value" | |
# exit 1 | |
# fi | |
echo "✅ All tests passed!" | |
echo "Static outputs:" | |
echo " username: ${{ steps.test-vars.outputs.username }}" | |
echo " environment: ${{ steps.test-vars.outputs.environment }}" | |
# echo "Jinja outputs:" | |
# echo " greeting: ${{ steps.test-vars.outputs.greeting }}" | |
# echo " is_prod: ${{ steps.test-vars.outputs.is_prod }}" |