Skip to content

GitHub Actions test: Which file contains the test results? #57

GitHub Actions test: Which file contains the test results?

GitHub Actions test: Which file contains the test results? #57

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 set up tooling on the image
# Replace <install dependencies> with a cli command to install the dependencies
#
# Find Github Actions to set up 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:
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5
- 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
# - run: ls -laR build # GitHub Actions test: Which file contains the test results?
# Input:
# * build/hello-world/junit-report-hello-world.xml
# * build/leap/junit-report-leap.xml
# Output:
# * junit-report-hello-world.xml
# * junit-report-leap.xml
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: |
build/**/junit-report*.xml
!build/**/*.xml
- name: Report
uses: dorny/test-reporter@eaa763f6ffc21c7a37837f56cd5f9737f27fc6c8
if: always()
with:
name: test-results
path: ./*.xml
reporter: java-junit
fail-on-error: true