Fix #64: Support reading values containing line separators #127
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: Test | |
on: | |
push: | |
branches-ignore: | |
- master | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./src/test/resources/ | |
id: simple | |
with: | |
file: src/test/resources/test.properties | |
property: name | |
- run: '[[ "Darth Vader" == "${{ steps.success.outputs.value }}" ]]' | |
- uses: ./src/test/resources/ | |
id: multiline | |
with: | |
file: src/test/resources/test.properties | |
property: affiliation | |
- run: '[[ "Galactic\nEmpire" == "${{ steps.all.outputs.value }}" ]]' | |
- uses: ./src/test/resources/ | |
id: simple-default | |
with: | |
file: src/test/resources/test.properties | |
property: version | |
default: 1.0.0 | |
- run: '[[ "1.0.0" == "${{ steps.default.outputs.value }}" ]]' | |
- uses: ./src/test/resources/ | |
id: multiline-default | |
with: | |
file: src/test/resources/test.properties | |
property: version | |
default: |- | |
1 | |
2 | |
3 | |
- run: '[[ "1\n2\n3" == "${{ steps.default.outputs.value }}" ]]' | |
- uses: ./src/test/resources/ | |
id: unexisting-file | |
with: | |
file: src/test/resources/unexisting.properties | |
property: name | |
default: Anakin Skywalker | |
- run: '[[ "Anakin Skywalker" == "${{ steps.unexisting-file.outputs.value }}" ]]' | |
- uses: ./src/test/resources/ | |
id: all | |
with: | |
file: src/test/resources/test.properties | |
all: true | |
- run: '[[ "Darth Vader" == "${{ steps.all.outputs.name }}" ]]' | |
- run: '[[ "Sith Lord" == "${{ steps.all.outputs.occupation }}" ]]' | |
- run: '[[ "Galactic\nEmpire" == "${{ steps.all.outputs.affiliation }}" ]]' | |
- run: '[[ "Luke Skywalker" == "${{ steps.all.outputs.son }}" ]]' | |
- run: '[[ "1" == "${{ steps.all.outputs.read-java-properties-delimiter }}" ]]' | |
- run: '[[ "2" == "${{ steps.all.outputs.read-java-properties-delimiter-x }}" ]]' | |
- run: '[[ "3\n4" == "${{ steps.all.outputs.read-java-properties-delimiter-x-x }}" ]]' | |
- uses: ./src/test/resources/ | |
id: failure | |
with: | |
file: src/test/resources/unexisting.properties | |
property: name | |
continue-on-error: true | |
- run: '[[ "failure" == "${{ steps.failure.outcome }}" ]]' | |
actions-typing: | |
name: Validate actions typing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: typesafegithub/github-actions-typing@v1 |