Default to dylan-tool@0.11.0 #47
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
# To test changes to the install-dylan-tool Action we choose an arbitrary | |
# project (pacman-catalog) to build and test. | |
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: Build pacman-catalog-test-suite | |
run: | | |
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' |