This commit is contained in:
parent
7fe502fcb0
commit
4ed7aaec66
3 changed files with 2 additions and 59 deletions
|
@ -28,7 +28,7 @@ jobs:
|
||||||
|
|
||||||
- name: Unzip BaseX
|
- name: Unzip BaseX
|
||||||
run: |
|
run: |
|
||||||
unzip BaseX107.zip -d $HOME
|
unzip BaseX.zip -d $HOME
|
||||||
rm BaseX.zip
|
rm BaseX.zip
|
||||||
|
|
||||||
- name: Add BaseX to PATH
|
- name: Add BaseX to PATH
|
||||||
|
|
|
@ -4,4 +4,4 @@ c
|
||||||
Xyxh
|
Xyxh
|
||||||
4456
|
4456
|
||||||
9.7.4 xyxz01x
|
9.7.4 xyxz01x
|
||||||
a
|
ab
|
57
.github/workflows/ci-basex.yaml
vendored
57
.github/workflows/ci-basex.yaml
vendored
|
@ -1,57 +0,0 @@
|
||||||
name: Run BaseX Tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch: # Enables manual trigger
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- '.gitea/workflows/trigger/release'
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set up Java
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: '17'
|
|
||||||
|
|
||||||
- name: Download BaseX
|
|
||||||
run: |
|
|
||||||
BASEX_VERSION="10.7" # Example version (adjust as needed)
|
|
||||||
# Remove dots from version for filename (e.g., "11.7" → "117") "9.7.4","10.7"
|
|
||||||
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: |
|
|
||||||
unzip BaseX107.zip -d $HOME
|
|
||||||
rm BaseX.zip
|
|
||||||
|
|
||||||
- name: Add BaseX to PATH
|
|
||||||
run: |
|
|
||||||
echo "BASEX_ROOT=$HOME/basex" >> $GITHUB_ENV
|
|
||||||
echo "PATH=$PATH:$HOME/basex/bin" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Verify BaseX installation
|
|
||||||
run: |
|
|
||||||
basex -c "SHOW OPTIONS"
|
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: main
|
|
||||||
|
|
||||||
- name: Build package
|
|
||||||
run: |
|
|
||||||
basex scripts/make-xar.xq
|
|
||||||
basex scripts/repo-install.xq
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
basex -Wt src/test
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue