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-01-04 13:38:27 +00:00
|
|
|
|
|
|
|
jobs:
|
2025-02-10 22:30:37 +00:00
|
|
|
test:
|
2025-02-08 23:01:54 +00:00
|
|
|
runs-on: ubuntu-latest
|
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:
|
|
|
|
basex-version: '11.7' # Specify the BaseX version here
|
|
|
|
|
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: |
|
|
|
|
basex -Wt src/test
|