Skip to content
Permalink
Browse files
add root files
  • Loading branch information
leerho committed Mar 16, 2021
1 parent d7f9146 commit 39f3be13c639730d51047b464a73441a4282b4c9
Showing 7 changed files with 1,149 additions and 0 deletions.
@@ -0,0 +1,2 @@
github:
homepage: https://datasketches.apache.org
@@ -0,0 +1,36 @@
# The default behavior, which overrides 'core.autocrlf', is to use Git's
# built-in heuristics to determine whether a particular file is text or binary.
# Text files are automatically normalized to the user's platforms.
* text=auto

# Explicitly declare text files that should always be normalized and converted
# to native line endings.
.asf.yaml text
.gitattributes text
.gitignore text
git.properties text
.travis.yml text
LICENSE text
NOTICE text
*.html text
*.java text
*.md text
*.properties text
*.sh text
*.xml text
*.yml text
*.yaml text

# Declare files that will always have CRLF line endings on checkout.

# Explicitly denote all files that are truly binary and should not be modified.
*.jpg binary
*.png binary
*.svg binary

# Declare files that should be ignored when creating an archive of the git repository
.asf.yaml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
.github/ export-ignore
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>8</version>
<vendor>openjdk</vendor>
</provides>
<configuration>
<jdkHome>${JAVA_HOME}</jdkHome>
</configuration>
</toolchain>
</toolchains>
@@ -0,0 +1,53 @@
name: Java Test Coverage with Maven, Coveralls

on:
pull_request:
push:
branches: [ master ]

env:
MAVEN_OPTS: -Xmx4g -Xms1g
repo_token: ${{secrets.coveralls_token}}

jobs:
build:
name: Build, Test, Coverage
runs-on: ubuntu-latest

steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: build-${{ runner.os }}-maven-

- name: Install JDK
uses: AdoptOpenJDK/install-jdk@v1
with:
version: '8'
architecture: x64
impl: hotspot
targets: 'JDK_8;JAVA_HOME'

- name: Install Dependencies
run: >
mvn clean install -B -V -q
-DskipTests=true
-Dmaven.javadoc.skip=true
-Dgpg.skip=true
--toolchains .github/workflows/.toolchains.xml
- name: Test & Report
if: ${{ success() }}
run: >
mvn verify coveralls:report -B -V -q
-Dcoveralls-repo-token=${repo_token}
-Dmaven.javadoc.skip=true
-Dgpg.skip=true
--toolchains .github/workflows/.toolchains.xml

0 comments on commit 39f3be1

Please sign in to comment.