Skip to content

Commit

Permalink
Merge pull request #19 from WhoopInc/mayank/release/1.102.0
Browse files Browse the repository at this point in the history
Upgrade to Paparazzi 1.3.1 [Whoop fork release - 1.2.0]
  • Loading branch information
imayank91 authored Oct 18, 2023
2 parents 346c596 + dd9161c commit f3c708c
Show file tree
Hide file tree
Showing 610 changed files with 16,449 additions and 2,528 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ end_of_line = lf

[*.{kt, kts}]
ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,kotlinx.**,^

ktlint_standard_argument-list-wrapping = disabled
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto eol=lf

*.bat text eol=crlf
*.jar binary
*.png binary
7 changes: 0 additions & 7 deletions .github/dependabot.yaml

This file was deleted.

36 changes: 17 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: build

on: [push, pull_request]
on:
pull_request: {}

push:
branches:
- '**'
tags-ignore:
- '**'

env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
Expand All @@ -13,21 +20,15 @@ jobs:
os: [
macOS-latest,
windows-latest,
# Copied from SqlDelight: https://github.com/cashapp/sqldelight/blame/master/.github/workflows/PR.yml#L13-L18
# TL;DR looks like libraries installed on ubuntu-latest conflicts, resulting in failed builds
# Also, see: https://github.com/touchlab/SQLiter/pull/38#issuecomment-867171789
ubuntu-18.04
ubuntu-latest
]
java-version: [11, 12, 16, 18]
java-version: [17, 18]

runs-on: ${{matrix.os}}

steps:
- name: Checkout
uses: actions/[email protected]

- name: Validate Gradle Wrapper
uses: gradle/[email protected]
uses: actions/checkout@v3

- name: Configure JDK
uses: actions/setup-java@v3
Expand All @@ -38,10 +39,7 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Run Paparazzi Tests
run: ./gradlew -p paparazzi check

- name: Run Sample Tests
- name: Run All Tests
run: ./gradlew check

- name: Upload Test Failures
Expand All @@ -50,8 +48,8 @@ jobs:
with:
name: test-failures
path: |
**/build/reports/tests/test/
**/out/failures/
**/build/reports/tests/*/
**/build/paparazzi/failures/
paparazzi/paparazzi-gradle-plugin/src/test/projects/**/build/reports/paparazzi/images/
publish:
Expand All @@ -62,16 +60,16 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v3

- name: Configure JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
java-version: 17

- name: Publish Artifacts
run: ./gradlew -p paparazzi publishMavenPublicationToMavenCentralRepository paparazzi-gradle-plugin:publishPluginMavenPublicationToMavenCentralRepository paparazzi-gradle-plugin:publishPaparazziPluginMarkerMavenPublicationToMavenCentralRepository --no-parallel
run: ./gradlew publishMavenPublicationToMavenCentralRepository paparazzi-gradle-plugin:publishAllPublicationsToMavenCentralRepository --no-parallel
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/gradle-wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: gradle-wrapper

on:
pull_request:
paths:
- 'gradlew'
- 'gradlew.bat'
- 'gradle/wrapper/'

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
2 changes: 1 addition & 1 deletion .github/workflows/prepare_mkdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
set -ex

# Generate the API docs
./gradlew -p paparazzi dokkaGfm
./gradlew dokkaGfm

# Dokka filenames like `-http-url/index.md` don't work well with MkDocs <title> tags.
# Assign metadata to the file's first Markdown heading.
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: release

on:
push:
tags:
- '**'

env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Configure JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Publish Artifacts
run: ./gradlew publishMavenPublicationToMavenCentralRepository paparazzi-gradle-plugin:publishAllPublicationsToMavenCentralRepository --no-parallel
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}

- name: Extract release notes
id: release_notes
uses: ffurrer2/extract-release-notes@v1

- name: Create release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.release_notes.outputs.release_notes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Prep mkdocs
run: .github/workflows/prepare_mkdocs.sh

- name: Build mkdocs
run: |
pip3 install -r .github/workflows/requirements.txt
mkdocs build
- name: Deploy docs to website
if: success()
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: site
CLEAN: true
34 changes: 17 additions & 17 deletions .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
click==7.1.2
future==0.18.2
Jinja2==2.11.3
click==8.1.5
future==0.18.3
Jinja2==3.1.2
livereload==2.6.3
lunr==0.5.8
Markdown==3.2.2
MarkupSafe==1.1.1
mkdocs==1.2.3
mkdocs-macros-plugin==0.4.9
mkdocs-material==5.5.7
mkdocs-material-extensions==1.0
Pygments==2.7.4
pymdown-extensions==8.0
python-dateutil==2.8.1
PyYAML==5.4
lunr==0.6.2
Markdown<3.5
MarkupSafe==2.1.3
mkdocs==1.4.3
mkdocs-macros-plugin==1.0.2
mkdocs-material==9.1.18
mkdocs-material-extensions==1.1.1
Pygments==2.15.1
pymdown-extensions==10.1
python-dateutil==2.8.2
PyYAML==6.0
repackage==0.7.3
six==1.15.0
termcolor==1.1.0
tornado==6.0.4
six==1.16.0
termcolor==2.3.0
tornado==6.3.2
Loading

0 comments on commit f3c708c

Please sign in to comment.