This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuration for the new multi-repo organization (#1)
* Configuration for the new multi-repo organization * Fix checks
- Loading branch information
1 parent
fe7bb21
commit ffdd373
Showing
34 changed files
with
1,043 additions
and
73 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,6 @@ | ||
# Some KtLint rules | ||
[*.{kt,kts}] | ||
indent_size=2 | ||
insert_final_newline=true | ||
max_line_length=off | ||
disabled_rules=import-ordering,no-unit-return |
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,19 @@ | ||
--- | ||
name: Add Community Resource | ||
about: Add media related to Arrow to the Community Resources section - blogs, videos, | ||
audio, etc. | ||
title: "[Add Media]" | ||
labels: Media Resource | ||
assignees: MaureenElsberry | ||
|
||
--- | ||
|
||
**Type of Content:** | ||
|
||
**Link:** | ||
|
||
**Brief Description of Content:** | ||
|
||
**Author/Presenter Name:** | ||
|
||
**Twitter handle:** |
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,23 @@ | ||
--- | ||
name: Add company logo to users | ||
about: 'If you’re using Arrow in Production, submit this issue to get your logo added | ||
to the Arrow_kt.io website under the list of users! ' | ||
title: "[Add company logo]" | ||
labels: Arrow in Production | ||
assignees: MaureenElsberry | ||
|
||
--- | ||
|
||
**Company Name:** | ||
|
||
**Website:** | ||
|
||
**Logo:** | ||
|
||
Please upload a high-res logo of either .svg or .png to this issue. | ||
|
||
- [ ] By checking this box, I’m confirming that I have permission to add this company to the public list of users. | ||
|
||
**Optional Information:** | ||
|
||
Tell us a bit on how you’re using Arrow! We’d love to hear it: |
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,12 @@ | ||
--- | ||
name: Feature request | ||
about: What would you like to see in Arrow? | ||
title: [Request] | ||
labels: '' | ||
assignees: Maintainers | ||
|
||
--- | ||
|
||
What version are you currently using? | ||
|
||
What would you like to see? |
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,28 @@ | ||
name: "arrow-fx: build" | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
arrow-fx_build: | ||
|
||
env: | ||
BASEDIR: ${{github.workspace}} | ||
JAVA_OPTS: -Xms512m -Xmx1024m | ||
|
||
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 | ||
architecture: x64 | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Checkout orchestrator | ||
run: git clone https://github.com/arrow-kt/arrow.git arrow | ||
- name: Build with Gradle | ||
run: | | ||
./arrow/scripts/project-build.sh | ||
./gradlew :arrow-benchmarks-fx:jmhClasses |
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,40 @@ | ||
name: "arrow-fx: build documentation" | ||
|
||
on: | ||
pull_request: | ||
branches-ignore: | ||
- release/0.11.0 | ||
|
||
jobs: | ||
arrow-fx_build_documentation: | ||
|
||
env: | ||
BASEDIR: ${{github.workspace}} | ||
JAVA_OPTS: -Xms512m -Xmx1024m | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
architecture: x64 | ||
- name: Checkout orchestrator | ||
run: git clone https://github.com/arrow-kt/arrow.git | ||
- name: Run Ank for site | ||
run: | | ||
./arrow/scripts/site-download.sh | ||
./arrow/scripts/site-run-ank.sh | ||
- name: Run Dokka for arrow-fx | ||
run: | | ||
git clone https://github.com/arrow-kt/arrow-fx.git | ||
./arrow/scripts/project-run-dokka.sh arrow-fx | ||
- name: Run Ank for arrow-fx | ||
run: ./arrow/scripts/project-run-ank.sh arrow-fx | ||
- name: Join docs to site | ||
run: ./arrow/scripts/project-locate-doc.sh arrow-fx | ||
- name: Prepare environment | ||
run: ./arrow/scripts/site-prepare-env.sh | ||
- name: Build site | ||
run: ./arrow/scripts/site-build.sh |
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,73 @@ | ||
name: "arrow-fx: publish in OSS" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release/0.11.0 | ||
|
||
jobs: | ||
arrow-fx_publish: | ||
|
||
env: | ||
BASEDIR: ${{github.workspace}} | ||
JAVA_OPTS: -Xms512m -Xmx1024m | ||
|
||
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 | ||
architecture: x64 | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Checkout orchestrator | ||
run: git clone https://github.com/arrow-kt/arrow.git arrow | ||
- name: Build with Gradle | ||
run: | | ||
./arrow/scripts/project-build.sh | ||
./gradlew :arrow-benchmarks-fx:jmhClasses | ||
- name: Publish artifacts | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }} | ||
run: ./arrow/scripts/project-publish.sh | ||
- name: Prepare environment to create the issue (new package) | ||
if: failure() | ||
id: create-issue | ||
run: | | ||
echo $(git log -1 --pretty=format:%s) | ||
echo ::set-output name=title::$(git log -1 --pretty=format:%s) | ||
echo -e "## Details\n" > issue.log | ||
echo -e "* **Commit hash**: \`$(git log -1 --pretty=format:%h)\`\n" >> issue.log | ||
echo -e "* **Author**: $(git log -1 --pretty=format:%an)\n" >> issue.log | ||
echo -e "* **Committer**: $(git log -1 --pretty=format:%cn)\n" >> issue.log | ||
echo -e "* **More info**: [error log](https://github.com/arrow-kt/arrow-fx/commit/$GITHUB_SHA/checks)\n" >> issue.log | ||
cat issue.log | ||
rm -rf /home/runner/work/_actions/actions/github-script/0.3.0/node_modules | ||
cd /home/runner/work/_actions/actions/github-script/0.3.0/ | ||
npm install | ||
npm install xmlhttprequest | ||
- name: Create the issue | ||
if: failure() | ||
uses: actions/github-script@0.3.0 | ||
with: | ||
github-token: ${{github.token}} | ||
script: | | ||
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | ||
function readFile(file) { | ||
var content; | ||
var rawFile = new XMLHttpRequest(); | ||
rawFile.open("GET", file, false); | ||
rawFile.onreadystatechange = function () { | ||
content = rawFile.responseText; | ||
} | ||
rawFile.send(); | ||
return content; | ||
} | ||
await github.issues.create({...context.repo, | ||
title: "BUILD: error when merging '${{ steps.create-issue.outputs.title }}' on master branch", | ||
body: readFile("file://${{github.workspace}}/issue.log")}); |
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,96 @@ | ||
name: "arrow-fx: publish documentation" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
arrow-fx_publish_documentation: | ||
|
||
env: | ||
BASEDIR: ${{github.workspace}} | ||
JAVA_OPTS: -Xms512m -Xmx1024m | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
architecture: x64 | ||
- name: Checkout orchestrator | ||
run: git clone https://github.com/arrow-kt/arrow.git | ||
- name: Run Ank for site | ||
run: | | ||
./arrow/scripts/site-download.sh | ||
./arrow/scripts/site-run-ank.sh | ||
- name: Run Dokka for arrow-fx | ||
run: | | ||
git clone https://github.com/arrow-kt/arrow-fx.git | ||
./arrow/scripts/project-run-dokka.sh arrow-fx | ||
- name: Run Ank for arrow-fx | ||
run: ./arrow/scripts/project-run-ank.sh arrow-fx | ||
- name: Join docs to site | ||
run: ./arrow/scripts/project-locate-doc.sh arrow-fx | ||
- name: Prepare environment | ||
run: | | ||
./arrow/scripts/site-prepare-env.sh | ||
./arrow/scripts/install-aws.sh | ||
- name: Build site | ||
run: ./arrow/scripts/site-build.sh | ||
- name: Deploy | ||
env: | ||
S3_BUCKET: ${{ secrets.S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_CLOUDFRONT_ID: ${{ secrets.AWS_CLOUDFRONT_ID }} | ||
run: ./arrow/scripts/site-publish.sh | ||
- name: Prepare environment to create the issue (new package) | ||
if: failure() | ||
id: create-issue | ||
run: | | ||
echo $(git log -1 --pretty=format:%s) | ||
echo ::set-output name=title::$(git log -1 --pretty=format:%s) | ||
echo -e "## Details\n" > issue.log | ||
echo -e "* **Commit hash**: \`$(git log -1 --pretty=format:%h)\`\n" >> issue.log | ||
echo -e "* **Author**: $(git log -1 --pretty=format:%an)\n" >> issue.log | ||
echo -e "* **Committer**: $(git log -1 --pretty=format:%cn)\n" >> issue.log | ||
echo -e "* **More info**: [error log](https://github.com/arrow-kt/arrow-fx/commit/$GITHUB_SHA/checks)\n" >> issue.log | ||
cat issue.log | ||
rm -rf /home/runner/work/_actions/actions/github-script/0.3.0/node_modules | ||
cd /home/runner/work/_actions/actions/github-script/0.3.0/ | ||
npm install | ||
npm install xmlhttprequest | ||
- name: Create the issue | ||
if: failure() | ||
uses: actions/github-script@0.3.0 | ||
with: | ||
github-token: ${{github.token}} | ||
script: | | ||
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | ||
function readFile(file) { | ||
var content; | ||
var rawFile = new XMLHttpRequest(); | ||
rawFile.open("GET", file, false); | ||
rawFile.onreadystatechange = function () { | ||
content = rawFile.responseText; | ||
} | ||
rawFile.send(); | ||
return content; | ||
} | ||
await github.issues.create({...context.repo, | ||
title: "DOC: error when merging '${{ steps.create-issue.outputs.title }}' on master branch", | ||
body: readFile("file://${{github.workspace}}/issue.log")}); | ||
- name: Save content | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
S3_BUCKET: ${{ secrets.S3_BUCKET }} | ||
AWS_CLOUDFRONT_ID: ${{ secrets.AWS_CLOUDFRONT_ID }} | ||
run: aws s3 ls s3://$S3_BUCKET --recursive --summarize > site-content.log | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: site-content | ||
path: site-content.log |
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,76 @@ | ||
name: Sync release branch | ||
|
||
on: | ||
schedule: | ||
- cron: '0 4 * * *' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
ref: release/0.11.0 | ||
- name: Merge master on release branch | ||
id: merge | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
run: | | ||
git remote set-url origin https://arrow-kt:$GITHUB_TOKEN@github.com/arrow-kt/arrow-fx.git | ||
git config --global user.email "raulraja@users.noreply.github.com" | ||
git config --global user.name "raulraja" | ||
git merge origin/master -m "Merge master on release branch" | ||
echo ::set-output name=changes::$(git diff origin/release/0.11.0..HEAD) | ||
- name: Set up JDK 1.8 | ||
if: steps.merge.outputs.changes != '' | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
architecture: x64 | ||
- name: Validate Gradle Wrapper | ||
if: steps.merge.outputs.changes != '' | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Build with Gradle | ||
if: steps.merge.outputs.changes != '' | ||
env: | ||
JAVA_OPTS: -Xms512m -Xmx1024m | ||
run: | | ||
./gradlew clean build :arrow-benchmarks-fx:jmhClasses | ||
./gradlew check | ||
- name: Push changes | ||
if: steps.merge.outputs.changes != '' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
run: | | ||
git push origin HEAD:release/0.11.0 | ||
- name: Prepare environment to create the issue (new package) | ||
if: failure() | ||
run: | | ||
echo -e "## Error log\nhttps://github.com/arrow-kt/arrow-fx/commit/$GITHUB_SHA/checks\n" > issue.log | ||
echo -e "## Conflicts\n\`\`\`\n$(git diff --diff-filter=U)\n\`\`\`\n" >> issue.log | ||
rm -rf /home/runner/work/_actions/actions/github-script/0.3.0/node_modules | ||
cd /home/runner/work/_actions/actions/github-script/0.3.0/ | ||
npm install | ||
npm install xmlhttprequest | ||
- name: Create the issue | ||
if: failure() | ||
uses: actions/github-script@0.3.0 | ||
with: | ||
github-token: ${{github.token}} | ||
script: | | ||
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | ||
function readFile(file) { | ||
var content; | ||
var rawFile = new XMLHttpRequest(); | ||
rawFile.open("GET", file, false); | ||
rawFile.onreadystatechange = function () { | ||
content = rawFile.responseText; | ||
} | ||
rawFile.send(); | ||
return content; | ||
} | ||
await github.issues.create({...context.repo, | ||
title: 'Error when sync release/0.11.0 with master', | ||
body: readFile("file:///home/runner/work/arrow-fx/arrow-fx/issue.log")}); |
Oops, something went wrong.