aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniel Santiago Rivera <danysantiago@google.com>2023-01-31 17:41:31 -0500
committerDaniel Santiago Rivera <danysantiago@google.com>2023-02-01 09:01:24 -0500
commit8b6cde9a0e9e927d4804fe81616baf28f8539b72 (patch)
tree32591b66c39ac18e0ab8aa8387dcfc6e07812cb5 /.github
parentfe5ac83ed28793b359d3f844ab46015ca4f30fa1 (diff)
parentc99ed244c6e4c7f8594f75566bb19ec62fa9c80d (diff)
downloadkotlinpoet-8b6cde9a0e9e927d4804fe81616baf28f8539b72.tar.gz
Initial import of kotlinpoet from upstream masterplatform-tools-34.0.1main-16k
Revision: https://github.com/square/kotlinpoet/commit/c99ed244c6e4c7f8594f75566bb19ec62fa9c80d Change-Id: I116f1b84f3ca8ff59e2913f4348ccf0d4e57976d
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md20
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md20
-rw-r--r--.github/workflows/build.yml97
-rw-r--r--.github/workflows/mkdocs-requirements.txt19
4 files changed, 156 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 00000000..cbe36f66
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,20 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: bug
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+A sample Github project that reproduces the problem is ideal. Alternatively, please provide a failing unit test that triggers the bug.
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 00000000..11fc491e
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: enhancement
+assignees: ''
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..46c31895
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,97 @@
+name: Build
+
+on: [push, pull_request]
+
+env:
+ GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
+
+jobs:
+ jvm:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Validate Gradle Wrapper
+ uses: gradle/wrapper-validation-action@v1
+
+ - name: Configure JDK
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'zulu'
+ java-version: 18
+
+ - name: Test
+ run: ./gradlew build
+
+ build-docs:
+ runs-on: ubuntu-latest
+ if: github.repository == 'square/kotlinpoet' && github.ref != 'refs/heads/master'
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Configure JDK
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'zulu'
+ java-version: 18
+
+ - name: Prep docs
+ run: ./gradlew dokkaHtml
+
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: 3.8
+
+ - name: Build mkdocs
+ run: |
+ pip3 install -r .github/workflows/mkdocs-requirements.txt
+ mkdocs build
+
+ publish:
+ runs-on: ubuntu-latest
+ if: github.repository == 'square/kotlinpoet' && github.ref == 'refs/heads/master'
+ needs:
+ - jvm
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Configure JDK
+ uses: actions/setup-java@v3
+ with:
+ distribution: 'zulu'
+ java-version: 18
+
+ - name: Upload Artifacts
+ run: ./gradlew publish
+ env:
+ ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
+ ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
+
+ - name: Prep docs
+ run: ./gradlew dokkaHtml
+
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: 3.8
+
+ - name: Build mkdocs
+ run: |
+ pip3 install -r .github/workflows/mkdocs-requirements.txt
+ mkdocs build
+
+ - name: Deploy 🚀
+ if: success() && github.ref == 'refs/heads/master'
+ uses: JamesIves/github-pages-deploy-action@releases/v3
+ with:
+ GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
+ BRANCH: gh-pages # The branch the action should deploy to.
+ FOLDER: site # The folder the action should deploy.
+ SINGLE_COMMIT: true
diff --git a/.github/workflows/mkdocs-requirements.txt b/.github/workflows/mkdocs-requirements.txt
new file mode 100644
index 00000000..67c640f2
--- /dev/null
+++ b/.github/workflows/mkdocs-requirements.txt
@@ -0,0 +1,19 @@
+click==8.1.3
+future==0.18.3
+Jinja2==3.1.2
+livereload==2.6.3
+lunr==0.6.2
+Markdown==3.3.7 # See https://github.com/mkdocs/mkdocs/issues/2892.
+MarkupSafe==2.1.2
+mkdocs==1.4.2
+mkdocs-macros-plugin==0.7.0
+mkdocs-material==9.0.9
+mkdocs-material-extensions==1.1.1
+Pygments==2.14.0
+pymdown-extensions==9.9.2
+python-dateutil==2.8.2
+PyYAML==6.0
+repackage==0.7.3
+six==1.16.0
+termcolor==2.2.0
+tornado==6.2