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

57 lines
1.3 KiB
YAML
Raw 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:
- '.gitea/workflows/trigger/release'
2025-01-04 13:38:27 +00:00
jobs:
2025-01-24 11:10:24 +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-01-24 11:10:24 +00:00
- name: Set up Java
2025-01-31 21:13:52 +00:00
uses: actions/setup-java@v4
2025-01-24 11:10:24 +00:00
with:
2025-01-31 21:32:52 +00:00
distribution: 'temurin'
2025-01-31 21:13:52 +00:00
java-version: '17'
2025-01-24 11:10:24 +00:00
2025-02-04 14:28:46 +00:00
- name: Download BaseX
2025-01-24 11:10:24 +00:00
run: |
2025-02-10 11:29:29 +00:00
BASEX_VERSION="9.7.4" # Example version (adjust as needed)
# Remove dots from version for filename (e.g., "11.7" → "117") "9.7.4","10.7"
2025-02-04 14:28:46 +00:00
BASEX_CLEAN_VERSION="${BASEX_VERSION//./}"
wget https://files.basex.org/releases/$BASEX_VERSION/BaseX$BASEX_CLEAN_VERSION.zip -O BaseX.zip
- name: Unzip BaseX
run: |
sudo unzip BaseX.zip -d /opt/
rm BaseX.zip
- name: Add BaseX to PATH
run: |
echo "/opt/basex/bin" >> $GITHUB_PATH
echo "BASEX_HOME=/opt/basex" >> $GITHUB_ENV
- name: Verify BaseX installation
2025-01-31 22:19:15 +00:00
run: |
2025-02-02 10:53:49 +00:00
basex -c "SHOW OPTIONS"
2025-01-31 22:24:58 +00:00
2025-01-31 21:29:05 +00:00
- name: Checkout repository
uses: actions/checkout@v4
2025-02-04 16:09:34 +00:00
with:
ref: main
2025-01-31 21:29:05 +00:00
- name: Build package
run: |
2025-02-01 21:35:09 +00:00
basex scripts/install.bxs
2025-02-03 14:15:01 +00:00
2025-02-04 16:09:34 +00:00
- name: Run tests
2025-02-02 16:46:03 +00:00
run: |
2025-02-02 18:15:08 +00:00
basex -Wt src/test
2025-02-09 21:41:55 +00:00
basex -Wt src/test
2025-02-02 16:46:03 +00:00