Skip to content

Fix #64: Support reading values containing line separators #129

Fix #64: Support reading values containing line separators

Fix #64: Support reading values containing line separators #129

Workflow file for this run

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.simple.outputs.value }}
- uses: ./src/test/resources/
id: multiline
with:
file: src/test/resources/test.properties
property: affiliation
- run: ${{ 'Galactic\nEmpire' == steps.multiline.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.simple-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.multiline-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