Skip to content

Commit f76d614

Browse files
committed
Add test workflow for AccUnit JUnit XML (msaccess-vcs-build@dev)
1 parent e5b22f8 commit f76d614

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Test AccUnit JUnit XML (msaccess-vcs-build@dev)
2+
3+
on:
4+
push:
5+
branches:
6+
- test/accunit-junit-xml
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: [self-hosted, Windows, Office]
12+
13+
steps:
14+
- name: "Checkout"
15+
uses: actions/checkout@v4
16+
17+
- name: "A: Build add-in, AccUnit tests without JUnit XML"
18+
uses: AccessCodeLib/msaccess-vcs-build@dev
19+
with:
20+
source-dir: "source"
21+
target-dir: "bin"
22+
file-name: "ACLibDeclarationDictCore.accda"
23+
run-accunit-tests: true
24+
timeout-minutes: 10
25+
26+
- name: "B: Build DeclDictTester, AccUnit tests with JUnit XML"
27+
uses: AccessCodeLib/msaccess-vcs-build@dev
28+
with:
29+
source-dir: "DeclDictTester.accdb.src"
30+
target-dir: "bin"
31+
file-name: "DeclDictTester.accdb"
32+
run-accunit-tests: true
33+
accunit-junit-xml: "bin/accunit-results.xml"
34+
timeout-minutes: 10
35+
36+
- name: "Show JUnit XML"
37+
if: always()
38+
shell: pwsh
39+
run: |
40+
if (Test-Path bin/accunit-results.xml) { Get-Content bin/accunit-results.xml -Raw } else { Write-Warning "bin/accunit-results.xml not found" }
41+
42+
- name: "C: Upload results"
43+
if: always()
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: "Test results"
47+
path: "./bin/*"
48+
if-no-files-found: warn

0 commit comments

Comments
 (0)