Skip to content

Commit

Permalink
Add a GitHub workflow to build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Nov 8, 2023
1 parent c409d14 commit bcac9cf
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Licensed to Julian Hyde under one or more contributor license
# agreements. See the NOTICE file distributed with this work
# for additional information regarding copyright ownership.
# Julian Hyde licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a
# copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the
# License.
#
name: Java CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
java-version: [ "8", "11", "17" ]
hsqldb-version: [ "2.0.0", "2.3.1" ]
javadoc: [ false ]
include:
- java-version: "17"
hsqldb-version: "2.3.1"
javadoc: true

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
- name: Build with Maven
run: |
GOALS=verify
if [ "${{ matrix.javadoc }}" = true ]
then
GOALS="$GOALS javadoc:javadoc javadoc:test-javadoc"
fi
DEFS=
if [ "${{ matrix.hsqldb-version }}" ]
then
DEFS="$DEFS -Dhsqldb.version=${{ matrix.hsqldb-version }}"
fi
./mvnw $DEFS --batch-mode --update-snapshots $GOALS
# End main.yml
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SQL queries issued by Mondrian against the FoodMart data set, in JSON format

Copyright (C) 2004-2005 Julian Hyde
Copyright (C) 2005-2012 Pentaho
Copyright (C) 2015-2015 Julian Hyde
Copyright (C) 2015-2023 Julian Hyde
All Rights Reserved.

Based upon the Pentaho mondrian-data-queries artifact developed as
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
<!--
{% comment %}
Licensed to Julian Hyde under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Julian Hyde licenses this file to you under the Apache
License, Version 2.0 (the "License"); you may not use this
file except in compliance with the License. You may obtain a
copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific
language governing permissions and limitations under the
License.
{% endcomment %}
-->
[![Build Status](https://github.com/julianhyde/foodmart-queries/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/julianhyde/foodmart-queries/actions?query=branch%3Amain)

# foodmart-queries
SQL queries issued by Mondrian against the FoodMart data set, in JSON format

Expand Down

0 comments on commit bcac9cf

Please sign in to comment.