Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/build-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build-snapshot

on:
push:
branches:
- develop
pull_request:
branches:
- develop
tags:
- "*.[0-9]-SNAPSHOT"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
- name: Set up CI environment
run: .github/setup.sh
- name: Install blosc
run: sudo apt install libblosc-dev
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Run mvn test
run: mvn test
- name: Execute the build
run: .github/build.sh
env:
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: build
name: deploy-main

on:
push:
branches:
- main
- develop
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- main
- "[0-9].[0-9].[0-9]"

jobs:
build:
Expand All @@ -25,6 +22,12 @@ jobs:
cache: 'maven'
- name: Set up CI environment
run: .github/setup.sh
- name: Install blosc
run: sudo apt install libblosc-dev
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Run mvn test
run: mvn test
- name: Execute the build
run: .github/build.sh
env:
Expand All @@ -33,4 +36,4 @@ jobs:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test

on:
pull_request:
branches:
- main
- develop

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
- name: Set up CI environment
run: .github/setup.sh
- name: Install blosc
run: sudo apt install libblosc-dev
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Run mvn test
run: mvn test