generated from streamnative/pulsar-io-template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
streamnativebot
committed
Nov 8, 2022
1 parent
7f8eb0b
commit 8377f57
Showing
5 changed files
with
108 additions
and
133 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
|
@@ -21,13 +20,13 @@ | |
name: Auto Labeling | ||
|
||
on: | ||
pull_request_target : | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- labeled | ||
- opened | ||
- edited | ||
- labeled | ||
|
||
|
||
|
||
|
||
# A GitHub token created for a PR coming from a fork doesn't have | ||
# 'admin' or 'write' permission (which is required to add labels) | ||
|
@@ -39,13 +38,20 @@ jobs: | |
labeling: | ||
if: ${{ github.repository == 'streamnative/pulsar-io-template' }} | ||
permissions: | ||
pull-requests: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: streamnative/github-workflow-libraries/doc-label-check@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`' | ||
- uses: s4u/[email protected] | ||
with: | ||
servers: '[{"id": "ossrh", "username": "${{ secrets.SONATYPE_USERNAME }}", | ||
"password": "${{ secrets.SONATYPE_PASSWORD }}"}]' | ||
- name: Login to cloudsmith | ||
run: docker login -u="${{ secrets.CLOUDSMITH_USERNAME }}" -p="${{ secrets.CLOUDSMITH_API_KEY | ||
}}" docker.cloudsmith.io | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: streamnative/github-workflow-libraries/doc-label-check@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`' | ||
|
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 |
---|---|---|
|
@@ -3,57 +3,64 @@ name: lakehouse mvn build check and unit tests | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- branch-* | ||
- master | ||
- branch-* | ||
push: | ||
branches: | ||
- master | ||
- branch-* | ||
- master | ||
- branch-* | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: License check | ||
run: mvn -ntp -B license:check | ||
|
||
- name: Build cloud package with Maven skipTests | ||
run: mvn clean install -ntp -B -DskipTests -P cloud | ||
|
||
- name: Build with Maven skipTests | ||
run: mvn clean install -ntp -B -DskipTests | ||
|
||
- name: Style check | ||
run: mvn -ntp -B checkstyle:check | ||
|
||
- name: Spotbugs check | ||
run: mvn -ntp -B spotbugs:check | ||
|
||
- name: unit test after build | ||
env: | ||
CLOUD_BUCKET_NAME: ${{ secrets.CLOUD_BUCKET_NAME }} | ||
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
run: mvn test -Pcloud | ||
|
||
- name: package surefire artifacts | ||
if: failure() | ||
run: | | ||
rm -rf artifacts | ||
mkdir artifacts | ||
find . -type d -name "*surefire*" -exec cp --parents -R {} artifacts/ \; | ||
zip -r artifacts.zip artifacts | ||
- uses: actions/upload-artifact@master | ||
name: upload surefire-artifacts | ||
if: failure() | ||
with: | ||
name: surefire-artifacts | ||
path: artifacts.zip | ||
- uses: s4u/[email protected] | ||
with: | ||
servers: '[{"id": "ossrh", "username": "${{ secrets.SONATYPE_USERNAME }}", | ||
"password": "${{ secrets.SONATYPE_PASSWORD }}"}]' | ||
- name: Login to cloudsmith | ||
run: docker login -u="${{ secrets.CLOUDSMITH_USERNAME }}" -p="${{ secrets.CLOUDSMITH_API_KEY | ||
}}" docker.cloudsmith.io | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: License check | ||
run: mvn -ntp -B license:check | ||
|
||
- name: Build cloud package with Maven skipTests | ||
run: mvn clean install -ntp -B -DskipTests -P cloud | ||
|
||
- name: Build with Maven skipTests | ||
run: mvn clean install -ntp -B -DskipTests | ||
|
||
- name: Style check | ||
run: mvn -ntp -B checkstyle:check | ||
|
||
- name: Spotbugs check | ||
run: mvn -ntp -B spotbugs:check | ||
|
||
- name: unit test after build | ||
env: | ||
CLOUD_BUCKET_NAME: ${{ secrets.CLOUD_BUCKET_NAME }} | ||
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
run: mvn test -Pcloud | ||
|
||
- name: package surefire artifacts | ||
if: failure() | ||
run: | | ||
rm -rf artifacts | ||
mkdir artifacts | ||
find . -type d -name "*surefire*" -exec cp --parents -R {} artifacts/ \; | ||
zip -r artifacts.zip artifacts | ||
- uses: actions/upload-artifact@master | ||
name: upload surefire-artifacts | ||
if: failure() | ||
with: | ||
name: surefire-artifacts | ||
path: artifacts.zip |
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.