feature - V1.1 - New features #11
Workflow file for this run
This file contains 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: Continuous Integration - Test Action | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
- feature/** | |
permissions: | |
contents: read | |
jobs: | |
test-action: | |
name: Action Test Output | |
runs-on: ubuntu-latest | |
outputs: | |
comment-line: ${{ steps.action.outputs.test-action_comment-line }} | |
to-dont-read: ${{ steps.action.outputs.test-action_to-dont-read }} | |
multiline: ${{ steps.action.outputs.test-action_multiline }} | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Test Action | |
id: action | |
uses: ./ | |
with: | |
file-path: ./yq-test-action.yml | |
filtering-keys: | | |
test-action_comment-line | |
test-action_to-rename | |
test-action_multiline | |
renaming-outputs: | | |
test-action_to-rename=test-action_renamed | |
test-action-output-comment-line: | |
name: Action Test Output - Comment Line | |
needs: test-action | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Test Output Comment Line | |
id: test-output-comment-line | |
run: | | |
test_name="Test Output Comment Line" | |
expected="./app =" | |
.github/scripts/test-action-output.sh \ | |
"$test_name" \ | |
"$expected" \ | |
"${{ needs.test-action.outputs.comment-line }}" | |
test-action-output-dont-read: | |
name: Action Test Output - Don't Read | |
needs: test-action | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Test Output Don't Read | |
id: test-output-dont-read | |
run: | | |
test_name="Test Output Don't Read" | |
expected='' | |
.github/scripts/test-action-output.sh \ | |
"$test_name" \ | |
"$expected" \ | |
"${{ needs.test-action.outputs.to-dont-read }}" | |
test-action-output-multiline: | |
name: Action Test Output - Multiline | |
needs: test-action | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Test Output Multiline | |
id: test-output-multiline | |
run: | | |
test_name="Test Output Multiline" | |
expected="### Heading\n\n* Bullet C:\\\n* Driver D:\\\\\n* Points" | |
expected=$(printf '%s' "${expected}" | sed -e 's/\\n/\n/g') | |
.github/scripts/test-action-output.sh \ | |
"$test_name" \ | |
"$expected" \ | |
"${{ needs.test-action.outputs.multiline }}" |