Skip to content

Bump mikepenz/action-junit-report from 4 to 5 #190

Bump mikepenz/action-junit-report from 4 to 5

Bump mikepenz/action-junit-report from 4 to 5 #190

Workflow file for this run

name: build-and-test
on:
push:
# all branches
paths-ignore:
- 'documentation/**'
pull_request:
branches:
- main
- master
paths-ignore:
- 'documentation/**'
# This enables the Run Workflow button on the Actions tab.
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Add OD to PATH
run: |
echo "/home/runner/work/v3d/opendylan-2023.1/bin" >> $GITHUB_PATH
- name: Cache OD 2023.1
id: cache-2023-1
uses: actions/cache@v4
with:
path: |
/home/runner/work/v3d/opendylan-2023.1
key: ${{ runner.os }}-2023-1
- name: Cache packages
id: cache-packages
uses: actions/cache@v4
with:
path: |
./_packages
./registry
key: ${{ runner.os }}-${{ hashFiles('**/dylan-package.json') }}
- name: Install Opendylan
if: steps.cache-2023-1.outputs.cache-hit != 'true'
uses: dylan-lang/install-opendylan@v3
with:
version: 2023.1
tag: v2023.1.0
- name: Download dependencies
if: steps.cache-packages.outputs.cache-hit != 'true'
run: dylan update
- name: Build tests
run: dylan build v3d-test-suite
- name: Run tests
run: _build/bin/v3d-test-suite --tag=-benchmark --progress none --report surefire > _build/TEST-v3d.xml
- name: Publish Test Report
if: success() || failure()
uses: mikepenz/action-junit-report@v5
with:
report_paths: '**/_build/TEST-*.xml'