Skip to content

Fix test reporting workflow #71

Fix test reporting workflow

Fix test reporting workflow #71

Workflow file for this run

# This workflow will do a clean install of the dependencies and run tests across different versions
#
# Replace <track> with the track name
# Replace <image-name> with an image to run the jobs on
# Replace <action to setup tooling> with a github action to setup tooling on the image
# Replace <install dependencies> with a cli command to install the dependencies
#
# Find Github Actions to setup tooling here:
# - https://github.com/actions/?q=setup&type=&language=
# - https://github.com/actions/starter-workflows/tree/main/ci
# - https://github.com/marketplace?type=actions&query=setup
#
# Requires scripts:
# - bin/test
name: free-pascal / Test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
actions: read
checks: write
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install free-pascal compiler and lazarus
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y fpc lcl
- name: Run tests for all exercises
run: bin/test
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Junit Test Results
path: build/**/junit-report-*.xml
reporter: java-junit
fail-on-error: true