Skip to content

Commit

Permalink
automation: add build-and-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Feb 29, 2024
1 parent baf0e4e commit 06fd326
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]

steps:
- uses: actions/checkout@v4

- name: Install Opendylan compiler
uses: dylan-lang/install-opendylan@v3
with:
version: 2024.1
tag: v2024.1.0

- name: Install dependencies
run: dylan update

- name: Build test suite
run: dylan build lsp-dylan-test-suite

- name: Run test suite
run: |
_build/bin/lsp-dylan-test-suite --progress none --report surefire > _build/test-results.xml
- name: Publish Test Report
if: success() || failure()
uses: mikepenz/action-junit-report@v4
with:
report_paths: '**/_build/test-results.xml'

0 comments on commit 06fd326

Please sign in to comment.