forked from DroidKaigi/conference-app-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into kuu/benchmark
- Loading branch information
Showing
668 changed files
with
13,830 additions
and
3,164 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,11 @@ | ||
root=true | ||
|
||
[*] | ||
charset=utf-8 | ||
end_of_line=lf | ||
indent_style=space | ||
insert_final_newline=true | ||
|
||
[{*.bash,*.sh,*.zsh}] | ||
indent_size=2 | ||
tab_width=2 |
Validating CODEOWNERS rules …
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,2 @@ | ||
* @DroidKaigi/ConferenceApp2023Reviewer | ||
/app-ios/ @DroidKaigi/appios |
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
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: "cache SPM" | ||
description: "save and restore SPM cache" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
id: cache-spm | ||
with: | ||
path: | | ||
./app-ios/build/DerivedData/SourcePackages | ||
key: v1-spm-${{ runner.os }}-${{ hashFiles('.xcode-version') }}-${{ hashFiles('app-ios/Modules/Package.swift') }}-${{ hashFiles('app-ios/App/DroidKaigi2023/DroidKaigi2023.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | ||
|
||
- if: ${{ steps.cache-spm.outputs.cache-hit != 'true' }} | ||
shell: bash | ||
working-directory: app-ios | ||
run: bundle exec fastlane shared | ||
|
||
- if: ${{ steps.cache-spm.outputs.cache-hit != 'true' }} | ||
shell: bash | ||
working-directory: app-ios | ||
run: bundle exec fastlane resolved_package | ||
|
||
- if: ${{ steps.cache-spm.outputs.cache-hit != 'true' }} | ||
uses: actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
with: | ||
path: | | ||
./app-ios/build/DerivedData/SourcePackages | ||
key: v1-spm-${{ runner.os }}-${{ hashFiles('.xcode-version') }}-${{ hashFiles('app-ios/Modules/Package.swift') }}-${{ hashFiles('app-ios/App/DroidKaigi2023/DroidKaigi2023.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} |
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,15 @@ | ||
name: "select xcode" | ||
description: "select xcode defined at .xcode-version" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: read .xcode-version | ||
shell: bash | ||
run: | | ||
echo "XCODE_VERSION=$(grep -oE "\d+(\.\d+)+" .xcode-version | awk -F. '{print $1 ".0"}' | uniq)" >> $GITHUB_ENV | ||
- name: execute xcode-select | ||
shell: bash | ||
run: | | ||
echo "select $XCODE_VERSION" | ||
sudo xcode-select --switch "/Applications/Xcode_$XCODE_VERSION.app" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Analyze | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'java' ] | ||
|
||
steps: | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
|
||
- uses: ./.github/actions/setup-java | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Build project | ||
run: ./gradlew :app-android:assemble --stacktrace | ||
|
||
- name: Perform analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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
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
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 |
---|---|---|
|
@@ -2,38 +2,65 @@ name: Format | |
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'app-ios/**' | ||
|
||
run-name: "Format by ${{ github.actor }}" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
format: | ||
permissions: | ||
contents: read | ||
|
||
timeout-minutes: 20 | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
|
||
- uses: ./.github/actions/setup-java | ||
|
||
- name: Check spotless | ||
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
arguments: spotlessCheck --stacktrace | ||
- uses: reviewdog/[email protected] | ||
|
||
- name: Check lint | ||
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2 | ||
with: | ||
arguments: lintDebug lintDevDebug --stacktrace | ||
# - uses: reviewdog/[email protected] | ||
# | ||
# - name: Check detekt | ||
# id: detekt | ||
# uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # v2 | ||
# with: | ||
# gradle-home-cache-cleanup: true | ||
# arguments: detekt reportMerge --continue | ||
# | ||
# - name: Run report with ReviewDog | ||
# if: steps.detekt.outcome == 'failure' | ||
# env: | ||
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: cat ./build/reports/detekt/merge.xml | | ||
# reviewdog -f=checkstyle -name="detekt" -reporter="github-pr-review" | ||
# | ||
# - name: Comment lint check success | ||
# if: steps.detekt.outcome == 'success' | ||
# uses: marocchino/sticky-pull-request-comment@v2 | ||
# with: | ||
# header: detekt | ||
# recreate: true | ||
# message: | | ||
# :sparkles: :sparkles: **That's perfect, passed the PR lint check perfectly!** :sparkles: :sparkles: | ||
- id: detekt | ||
run: ./gradlew detekt reportMerge --continue | ||
|
||
- name: Run report with ReviewDog | ||
if: steps.detekt.outcome == 'failure' | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
< ./build/reports/detekt/merge.xml reviewdog -f=checkstyle -name="detekt" -reporter="github-pr-review" | ||
- run: ./gradlew lintDebug lintDevDebug --stacktrace | ||
|
||
- name: Upload lint reports | ||
if: always() | ||
|
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
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
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.