1
0
Fork 0
pdfbox/.gitea/workflows/ci-basex.yaml

52 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2025-01-04 13:38:27 +00:00
name: Run BaseX Tests
on:
workflow_dispatch: # Enables manual trigger
2025-01-04 13:52:28 +00:00
push:
2025-01-04 13:38:27 +00:00
branches:
- main
2025-01-04 13:52:28 +00:00
paths:
2025-02-10 22:30:37 +00:00
- ".gitea/workflows/trigger/release"
2025-02-12 15:53:07 +00:00
2025-01-04 13:38:27 +00:00
jobs:
2025-02-12 15:53:07 +00:00
2025-02-10 22:30:37 +00:00
test:
2025-02-08 23:01:54 +00:00
runs-on: ubuntu-latest
2025-02-12 15:53:07 +00:00
strategy:
matrix:
basex-version: ["10.7", "11.7"]
2025-01-04 13:38:27 +00:00
steps:
2025-02-10 22:30:37 +00:00
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
2025-02-12 15:26:51 +00:00
- name: Install BaseX
uses: ./.github/actions/install-basex
with:
2025-02-12 15:53:07 +00:00
basex-version: ${{ matrix.basex-version }} # Specify the BaseX version here
2025-02-12 15:26:51 +00:00
2025-02-10 22:30:37 +00:00
- name: Build package
run: |
basex scripts/make-xar.xq
basex scripts/repo-install.xq
- name: Run tests
run: |
2025-02-15 22:33:36 +00:00
basex -Wt tests >test-results.xml
2025-02-13 12:36:45 +00:00
cat test-results.xml
2025-02-13 12:43:22 +00:00
- name: Upload test result Artifacts
uses: actions/upload-artifact@v3
with:
name: test-results
path: test-results.xml