Skip to content

Updates for new version of install-dylan-tool action #46

Updates for new version of install-dylan-tool action

Updates for new version of install-dylan-tool action #46

# To test changes to the install-dylan-tool Action we choose an arbitrary
# project (pacman-catalog) to build and test. Unfortunately, this will only run
# AFTER something is pushed to the "main" branch. Not sure how to fix that, but
# it's not a big problem since no one will use it until a specific version is
# tagged.
name: build-and-test
on:
push:
# all branches
pull_request:
branches:
- main
# This enables the Run Workflow button here:
# https://github.com/dylan-lang/install-dylan-tool/actions/workflows/build-and-test.yml
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: dylan-lang/pacman-catalog
# Use HEAD to make sure we test our changes to actions.yml. Is this
# correct? Using ${{ github.sha }} didn't work ('github' not found).
- uses: dylan-lang/install-dylan-tool@HEAD
- name: debug A
run: |
echo "PATH=${PATH}"
pwd
find .. -maxdepth 2
ls -l ..
dylan version
- name: Build pacman-catalog-test-suite
run: |
echo "PATH=${PATH}"
pwd
find .. -maxdepth 2
ls -l ..
DYLAN_CATALOG=. ../dylan update
dylan build pacman-catalog-test-suite
- name: Run pacman-catalog-test-suite
run: |
DYLAN_CATALOG=. _build/bin/pacman-catalog-test-suite --report surefire --report-file _build/pacman-catalog-tests.xml
- name: Publish test report
if: success() || failure()
uses: mikepenz/action-junit-report@v4
with:
report_paths: '**/_build/*-tests.xml'