Skip to content

fix(?): Using object instead of array #22

fix(?): Using object instead of array

fix(?): Using object instead of array #22

Workflow file for this run

name: Lazarus Main Workflow
permissions:
contents: write
on:
push:
branches: [ main ]
tags: [ "*" ]
paths-ignore: [ "README.md", "CHANGELOG.md", "release-notes.md" ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build Application
uses: gcarreno/re-usable-workflows/.github/workflows/build.lazarus.yml@main

Check failure on line 20 in .github/workflows/main.lazarus.yml

View workflow run for this annotation

GitHub Actions / Lazarus Main Workflow

Invalid workflow file

The workflow is not valid. In .github/workflows/main.lazarus.yml (Line: 20, Col: 11): Error from called workflow gcarreno/re-usable-workflows/.github/workflows/build.lazarus.yml@main (Line: 50, Col: 22): Unexpected symbol: '('. Located at position 106 within expression: matrix.os == 'windows-latest' && format('{0}-{1}.exe', inputs.app-name, fromJSON(inputs.config).triplets.(matrix.os)) || format('{0}-{1}', inputs.app-name, fromJSON(inputs.config).triplets.(matrix.os))
with:
app-name: helloworld
lpi-path: src
triplets: '{
"win": "x86_64-win64",
"lin": "x86_64-linux",
"osx": "x86_64-darwin"
}'
config: '{
"app-name": "helloworld",
"lpi-path": "src",
"os": ["ubuntu-latest"],
"lazarus-versions": ["stable"],
"triplets": {
"ubuntu-latest": "x86_64-lin"
}
}'
strategy:
fail-fast: true
test:
name: Test Application
uses: gcarreno/re-usable-workflows/.github/workflows/test.lazarus.yml@main
with:
app-name: helloworldtest
lpi-path: tests
config: '{
"app-name": "helloworld",
"lpi-path": "tests",
"os": ["ubuntu-latest"],
"what-tests": "all",
"output-format": "plain"
}'
strategy:
fail-fast: true
release:
name: Create GitHub Release
uses: gcarreno/re-usable-workflows/.github/workflows/release.lazarus.yml@main
needs: [ build, test ]
with:
artefacts: '[
"win": "${{ needs.build.outputs.win-artefact-path }}",
"lin": "${{ needs.build.outputs.lin-artefact-path }}",
"osx": "${{ needs.build.outputs.osx-artefact-path }}"
]'
strategy:
fail-fast: true