From 29d1a1cfa806d36bcfcf7e9c4c835d615cdeaa5f Mon Sep 17 00:00:00 2001 From: Dave Thaler Date: Thu, 14 Nov 2024 12:16:52 -0800 Subject: [PATCH] Add workflow to validate GEDCOM test files Fixes #214 Signed-off-by: Dave Thaler --- .github/workflows/validate-gedcom.yml | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/validate-gedcom.yml diff --git a/.github/workflows/validate-gedcom.yml b/.github/workflows/validate-gedcom.yml new file mode 100644 index 0000000..8f6d0b1 --- /dev/null +++ b/.github/workflows/validate-gedcom.yml @@ -0,0 +1,41 @@ +# For documentation on the github environment, see +# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners +# +# For documentation on the syntax of this file, see +# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions +--- +name: Validate-GEDCOM + +on: + push: + branches: [main, next-minor, next-patch] + pull_request: + branches: [main, next-minor, next-patch] + +permissions: + contents: read + +jobs: + validate-gedcom: + runs-on: windows-latest + env: + BUILD_PLATFORM: x64 + + steps: + - name: Checkout GEDCOM.io + uses: actions/checkout@v4 + + - name: Download GedValidate + shell: pwsh + run: Invoke-WebRequest https://github.com/ArmidaleSoftware/gedcom7/releases/download/v1.0.0/Windows.Release.GedValidate.exe.zip -OutFile GedValidate.zip + + - name: Unzip GedValidate + shell: pwsh + run: Expand-Archive GedValidate.zip -DestinationPath .\${{env.BUILD_PLATFORM} + + - name: Run GedValidate + shell: pwsh + run: | + dir .\${{env.BUILD_PLATFORM} + dir .\${{github.workspace} + .\${{env.BUILD_PLATFORM}\GedValidate.exe ${{github.workspace}}\testfiles\gedcom70\maximal70.ged