GitHub Actions test: Which file contains the test results? #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v3 | |
- 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? | |
- if: always() | |
run: | | |
cp build/hello-world/junit-report-hello-world.xml . | |
cp build/leap/junit-report-leap.xml . | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: test-results | |
path: junit-report-*.xml | |
#- name: Report | |
# uses: dorny/test-reporter@v1 | |
# if: always() | |
# with: | |
# name: test-results | |
# path: junit-report-*.xml | |
# reporter: java-junit | |
# fail-on-error: true |