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 Sep 7, 2023
1 parent 74dd2db commit d8b73bf
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
@@ -1,7 +1,7 @@
foodmart-data-mysql
Foodmart data set in MySQL format
Copyright (C) 2004-2005 Julian Hyde
Copyright (C) 2015-2015 Julian Hyde
Copyright (C) 2015-2023 Julian Hyde
Copyright (C) 2005-2012 Pentaho
All Rights Reserved.

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-data-mysql/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/julianhyde/foodmart-data-mysql/actions?query=branch%3Amain)

# foodmart-data-mysql
Foodmart data set in MySQL format

Expand Down

0 comments on commit d8b73bf

Please sign in to comment.