Skip to content

Commit

Permalink
fix: Correct params to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Sep 1, 2023
1 parent 21817e5 commit 4453e62
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:

build-app:
name: build-${{ matrix.os }}-${{ matrix.lazarus-versions }}
name: build-[${{ matrix.os }}][${{ matrix.lazarus-versions }}]
runs-on: ${{ matrix.os }}

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
"lpi-path": "lazarus/tests",
"bin-path": "lazarus/bin",
"build-mode": "Release",
"what-tests": "all",
"what-suite": "all",
"output-format": "plain",
"matrix": {
"os":[
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:

release-app:
name: release
name: release-[${{ fromJSON(inputs.config).tag }}]
runs-on: ubuntu-latest

steps:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test.lazarus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:

test-app:
name: test-${{ matrix.os }}-${{ matrix.lazarus-versions }}
name: test-[${{ matrix.os }}][${{ matrix.lazarus-versions }}]
runs-on: ${{ matrix.os }}

env:
Expand All @@ -36,7 +36,7 @@ jobs:
echo "lpi-path=${{ fromJSON(inputs.config).lpi-path }}" >> "$GITHUB_ENV"
echo "bin-path=${{ fromJSON(inputs.config).bin-path }}" >> "$GITHUB_ENV"
echo "build-mode=${{ fromJSON(inputs.config).build-mode }}" >> "$GITHUB_ENV"
echo "what-tests=${{ fromJSON(inputs.config).what-tests }}" >> "$GITHUB_ENV"
echo "what-suite=${{ fromJSON(inputs.config).what-suite }}" >> "$GITHUB_ENV"
echo "output-format=${{ fromJSON(inputs.config).output-format }}" >> "$GITHUB_ENV"
- name: Checkout Repository
Expand All @@ -54,7 +54,12 @@ jobs:
run: lazbuild -B --bm="${{ env.build-mode }}" "${{ env.lpi-path }}/${{ env.app-name }}.lpi"

- name: Run the tests
run: ${{ env.bin-path }}/${{ env._EXE_ }}
run: |
if [ "${{ env.what-suite }}" == "all" ];then
${{ env.bin-path }}/${{ env._EXE_ }} --all --format="${{ env.output-format }}"
else
${{ env.bin-path }}/${{ env._EXE_ }} --suite="${{ env.what-suite }}" --format="${{ env.output-format }}"
fi
# - name: Print some values
# run: |
Expand Down

0 comments on commit 4453e62

Please sign in to comment.