-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test in GHA CI, use make for InspectorXSLT for #72
This change integrates the Makefile-based testing harness for each of the submodules. For the InspectorXSLT submodule in the schema-gen directory, integrate the shell script that orchestrates Maven's installation of dependencies and execution of XML Calabash to run XProc files. The XProc pipeline files will run the XSpec tests in batch mode.
- Loading branch information
1 parent
93e1cda
commit f773efd
Showing
8 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: {} | ||
env: | ||
JAVA_VERSION: "17" | ||
JAVA_DISTRIBUTION: "temurin" | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: "${{ env.JAVA_DISTRIBUTION }}" | ||
java-version: "${{ env.JAVA_VERSION }}" | ||
- name: Run unit tests | ||
run: | | ||
make -C src unit-test | ||
id: unit-tests | ||
- name: Run integration tests | ||
run: | | ||
make -C src smoke-test | ||
id: integration-tests | ||
- name: Run specification tests | ||
run: | | ||
make -C src spec-test | ||
id: spec-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
include ../../testing/make_common.mk | ||
|
||
MODULEPATH:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
XSPEC_SCRIPT=$(realpath $(MODULEPATH)/../../../support/xspec-dev/mvn-saxon-xspec-batch.sh) | ||
|
||
.PHONY: test | ||
test: smoke-test ## Run all tests | ||
|
||
.PHONY: smoke-test | ||
smoke-test: ## Run all smoke-tests | ||
$(XSPEC_SCRIPT) "baseURI=file:$(XSPEC_SCRIPT)" "folder=$(MODULEPATH)/testing/tests" "recurse=yes" | ||
|
||
# .PHONY: clean | ||
# clean: ## Remove test output | ||
# rm -fr $(output_folder)/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.