Skip to content

chore: Testing with github.ref_type #53

chore: Testing with github.ref_type

chore: Testing with github.ref_type #53

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: 01 - Build Application
uses: gcarreno/re-usable-workflows/.github/workflows/build.lazarus.yml@main
with:
config: '{
"app-name": "helloworld",
"lpi-path": "src",
"matrix": {
"os": [
"ubuntu-latest",
"windows-latest",
"macos-latest"
],
"include":[
{
"os": "ubuntu-latest",
"triplet": "x86_64-linux"
},
{
"os": "windows-latest",
"triplet": "x86_64-win64"
},
{
"os": "macos-latest",
"triplet": "x86_64-darwin"
}
],
"lazarus-versions": [
"stable"
]
}
}'
strategy:
fail-fast: true
test:
name: 02 - Test Application
uses: gcarreno/re-usable-workflows/.github/workflows/test.lazarus.yml@main
with:
config: '{
"app-name": "helloworldtest",
"lpi-path": "tests",
"what-tests": "all",
"output-format": "plain",
"matrix": {
"os":[
"ubuntu-latest",
"windows-latest",
"macos-latest"
]
}
}'
strategy:
fail-fast: true
release:
if: contains(github.ref_type, 'tag')
name: 03 - Create GitHub Release
uses: gcarreno/re-usable-workflows/.github/workflows/release.lazarus.yml@main
needs: [ build, test ]
with:
config: '{
"app-name": "helloworld",
"tag": "${{ github.ref_name }}",
"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