-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from RADAR-base/0.14.0
Release 0.14.0
- Loading branch information
Showing
37 changed files
with
505 additions
and
737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Continuous integration, including test and integration test | ||
name: CI | ||
|
||
# Run in master and dev branches and in all pull requests to those branches | ||
on: | ||
push: | ||
branches: [ master, dev ] | ||
pull_request: {} | ||
|
||
jobs: | ||
# Build and test the code | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
# Cache gradle directories | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
# Key for restoring and saving the cache | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', 'gradle.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
# Compile the code | ||
- name: Compile code | ||
run: ./gradlew assemble | ||
|
||
# Gradle check | ||
- name: Check | ||
run: ./gradlew check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Continuous integration, including test and integration test | ||
name: Publish snapshots | ||
|
||
# Run in master and dev branches and in all pull requests to those branches | ||
on: | ||
push: | ||
branches: [ dev ] | ||
|
||
jobs: | ||
# Build and test the code | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Has SNAPSHOT version | ||
id: is-snapshot | ||
run: grep "version = '.*-SNAPSHOT'" build.gradle | ||
|
||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
# Cache gradle directories | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
# Key for restoring and saving the cache | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', 'gradle.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Install gpg secret key | ||
run: | | ||
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import | ||
gpg --list-secret-keys --keyid-format LONG | ||
- name: Publish | ||
env: | ||
OSSRH_USER: ${{ secrets.OSSRH_USER }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Create release files | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
upload: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
# Cache gradle directories | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
# Key for restoring and saving the cache | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', 'gradle.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
# Compile code | ||
- name: Compile code | ||
run: ./gradlew assemble | ||
|
||
# Upload it to GitHub | ||
- name: Upload to GitHub | ||
uses: AButler/upload-release-assets@v2.0 | ||
with: | ||
files: 'radar-jersey/build/libs/*;radar-jersey-hibernate/build/libs/*' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install gpg secret key | ||
run: | | ||
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import | ||
gpg --list-secret-keys --keyid-format LONG | ||
- name: Publish | ||
env: | ||
OSSRH_USER: ${{ secrets.OSSRH_USER }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
run: ./gradlew -Psigning.gnupg.keyName=CBEF2CF0 -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} publish closeAndReleaseSonatypeStagingRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Snyk scheduled test | ||
on: | ||
schedule: | ||
- cron: '0 2 * * 1' | ||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
env: | ||
REPORT_FILE: test.json | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/gradle-jdk11@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
command: test | ||
args: --json-file-output=${{ env.REPORT_FILE }} | ||
- name: Report new vulnerabilities | ||
uses: thehyve/report-vulnerability@master | ||
with: | ||
report-file: ${{ env.REPORT_FILE }} | ||
env: | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: ${{ failure() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Snyk test | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Run Snyk to check for vulnerabilities | ||
uses: snyk/actions/gradle-jdk11@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
args: --severity-threshold=high |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.