forked from dylan-lang/testworks
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.09 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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: 2023.1
tag: v2023.1.0
- name: Install dependencies
run: dylan update
- name: Build testworks-test-suite-app
run: dylan build testworks-test-suite-app
- name: Run testworks-test-suite-app
run: |
_build/bin/testworks-test-suite-app --progress none --report surefire > _build/TEST-testworks.xml
- name: Publish Test Report
if: success() || failure()
uses: mikepenz/action-junit-report@v4
with:
report_paths: '**/_build/TEST-*.xml'