GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — - define proper pipeline · max2max4u/AboutLibraries@272109f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • ci-gradle.properties
    • workflows
      • ci.yml
      • gradle-wrapper-validation.yml
  • DEV
    • default-detekt-config.yml
  • Dangerfile
  • Gemfile.lock
  • Gemfile
  • detekt.gradle
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/ci-gradle.properties‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
org.gradle.daemon=true
2+
org.gradle.parallel=true
3+
org.gradle.workers.max=2
4+
org.gradle.jvmargs=-Xmx6G
5+
org.gradle.caching=true
6+
org.gradle.configureondemand=true
7+
# parallel kapt
8+
kapt.use.worker.api=true
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboard
+91-25Lines changed: 91 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,95 @@
11
# Thanks to https://github.com/coil-kt/coil/blob/master/.github/workflows/ci.yml
2-
32
name: CI
3+
44
on:
5-
pull_request:
5+
push:
6+
tags:
7+
- '*'
8+
pull_request:
9+
610
jobs:
7-
ci:
8-
name: Build + Test
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
13-
- name: Checkout Gradle Build Cache
14-
if: ${{ steps.self_hosted.outputs.FLAG != 'self-hosted' }}
15-
uses: actions/cache@v2
16-
with:
17-
path: |
18-
~/.gradle/caches
19-
~/.gradle/wrapper
20-
!~/.gradle/wrapper/dists/**/gradle*.zip
21-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
22-
restore-keys: |
23-
gradle-${{ runner.os }}-
24-
25-
- name: Build
26-
run: ./gradlew clean build
27-
28-
- name: Detekt
29-
run: ./gradlew detekt
11+
build:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Validate gradle wrapper
19+
uses: gradle/wrapper-validation-action@v1
20+
21+
- name: Copy CI gradle.properties
22+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
23+
24+
- name: Checkout Gradle Build Cache
25+
if: ${{ steps.self_hosted.outputs.FLAG != 'self-hosted' }}
26+
uses: actions/cache@v2
27+
with:
28+
path: |
29+
~/.gradle/caches
30+
~/.gradle/wrapper
31+
!~/.gradle/wrapper/dists/**/gradle*.zip
32+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
33+
restore-keys: |
34+
gradle-${{ runner.os }}-
35+
36+
- name: Build Debug
37+
run: ./gradlew clean buildDebug
38+
39+
- name: Run Lint
40+
if: github.event_name == 'pull_request'
41+
run: ./gradlew lintDebug
42+
43+
- name: Detekt
44+
if: github.event_name == 'pull_request'
45+
run: ./gradlew detekt
46+
47+
- name: Setup Ruby
48+
if: github.event_name == 'pull_request'
49+
uses: ruby/setup-ruby@v1
50+
with:
51+
ruby-version: '2.6.3'
52+
bundler-cache: true
53+
54+
- name: Run Danger
55+
if: github.event_name == 'pull_request'
56+
run: |
57+
gem install danger
58+
bundle exec danger --dangerfile=Dangerfile --danger_id=danger-pr
59+
env:
60+
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
62+
- name: Prepare Keystore and Local.
63+
if: startsWith(github.ref, 'refs/tags/')
64+
run: |
65+
echo "${{ secrets.KEYSTORE }}" > opensource.jks.asc
66+
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch "opensource.jks.asc" > "app/opensource.jks"
67+
echo "${{ secrets.SIGNING_GRADLE }}" > signing.gradle.asc
68+
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch "signing.gradle.asc" > "app/signing.gradle"
69+
echo "openSource.signing.file=signing.gradle" >> local.properties
70+
71+
- name: Build Release App
72+
if: startsWith(github.ref, 'refs/tags/')
73+
run: ./gradlew app:assembleStaging app:assembleRelease app:bundleRelease
74+
75+
- name: Collect artifacts
76+
run: |
77+
COLLECT_PWD=${PWD}
78+
mkdir -p "artifacts"
79+
find . -name "*.apk" -type f -exec cp {} "artifacts" \;
80+
find . -name "*.aab" -type f -exec cp {} "artifacts" \;
81+
82+
- name: Archive Artifacts
83+
uses: actions/upload-artifact@v2
84+
with:
85+
name: "App-Artifacts"
86+
path: artifacts/*
87+
88+
- name: Release
89+
uses: softprops/action-gh-release@91409e712cf565ce9eff10c87a8d1b11b81757ae
90+
if: startsWith(github.ref, 'refs/tags/')
91+
with:
92+
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-b') || contains(github.ref, '-a') }}
93+
files: artifacts/*
94+
env:
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Collapse file

‎.github/workflows/gradle-wrapper-validation.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/gradle-wrapper-validation.yml
-10Lines changed: 0 additions & 10 deletions
This file was deleted.
Collapse file

‎DEV/default-detekt-config.yml‎

Copy file name to clipboardExpand all lines: DEV/default-detekt-config.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ formatting:
195195
ImportOrdering:
196196
active: false
197197
Indentation:
198-
active: true
198+
active: false
199199
autoCorrect: true
200200
indentSize: 4
201201
continuationIndentSize: 8
Collapse file

‎Dangerfile‎

Copy file name to clipboard
+45Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
github.dismiss_out_of_range_messages
2+
3+
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet.
4+
has_wip_label = github.pr_labels.any? { |label| label.include? "Engineers at work" }
5+
has_wip_title = github.pr_title.include? "[WIP]"
6+
7+
if has_wip_label || has_wip_title
8+
warn("PR is marked as Work in Progress")
9+
end
10+
11+
# Ensure the PR is not marked as DO NOT MERGE
12+
fail("PR specifies label DO NOT MERGE") if github.pr_labels.any? { |label| label.include? "DO NOT MERGE" }
13+
14+
# Warn when there is a big PR
15+
warn("Big PR") if git.lines_of_code > 5000
16+
17+
File.open("settings.gradle", "r") do |file_handle|
18+
file_handle.each_line do |setting|
19+
if setting.include? "include"
20+
gradleModule = setting[10..-1]
21+
22+
message(gradleModule)
23+
24+
# AndroidLint
25+
androidLintFile = String.new(gradleModule + "/build/reports/lint-results.xml")
26+
if File.file?(androidLintFile)
27+
android_lint.skip_gradle_task = true
28+
android_lint.severity = "Warning"
29+
android_lint.report_file = androidLintFile
30+
android_lint.filtering = true
31+
android_lint.lint(inline_mode: true)
32+
end
33+
34+
# Detekt
35+
detektFile = String.new(gradleModule + "/build/reports/detekt.xml")
36+
if File.file?(detektFile)
37+
kotlin_detekt.report_file = detektFile
38+
kotlin_detekt.skip_gradle_task = true
39+
kotlin_detekt.severity = "warning"
40+
kotlin_detekt.filtering = true
41+
kotlin_detekt.detekt(inline_mode: true)
42+
end
43+
end
44+
end
45+
end
Collapse file

‎Gemfile‎

Copy file name to clipboard
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
gem "jekyll-readme-index"
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6+
7+
gem 'danger'
8+
gem 'danger-android_lint'
9+
gem 'danger-kotlin_detekt'
Collapse file

‎Gemfile.lock‎

Copy file name to clipboard
+78Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.7.0)
5+
public_suffix (>= 2.0.2, < 5.0)
6+
ansi (1.5.0)
7+
ast (2.4.1)
8+
claide (1.0.3)
9+
claide-plugins (0.9.2)
10+
cork
11+
nap
12+
open4 (~> 1.3)
13+
colored2 (3.1.2)
14+
cork (0.3.0)
15+
colored2 (~> 3.1)
16+
danger (8.0.5)
17+
claide (~> 1.0)
18+
claide-plugins (>= 0.9.2)
19+
colored2 (~> 3.1)
20+
cork (~> 0.1)
21+
faraday (>= 0.9.0, < 2.0)
22+
faraday-http-cache (~> 2.0)
23+
git (~> 1.7)
24+
kramdown (~> 2.3)
25+
kramdown-parser-gfm (~> 1.0)
26+
no_proxy_fix
27+
octokit (~> 4.7)
28+
terminal-table (~> 1)
29+
danger-android_lint (0.0.8)
30+
danger-plugin-api (~> 1.0)
31+
oga
32+
danger-kotlin_detekt (0.0.3)
33+
danger-plugin-api (~> 1.0)
34+
danger-plugin-api (1.0.0)
35+
danger (> 2.0)
36+
faraday (1.0.1)
37+
multipart-post (>= 1.2, < 3)
38+
faraday-http-cache (2.2.0)
39+
faraday (>= 0.8)
40+
git (1.7.0)
41+
rchardet (~> 1.8)
42+
kramdown (2.3.0)
43+
rexml
44+
kramdown-parser-gfm (1.1.0)
45+
kramdown (~> 2.0)
46+
multipart-post (2.1.1)
47+
nap (1.1.0)
48+
no_proxy_fix (0.1.2)
49+
octokit (4.18.0)
50+
faraday (>= 0.9)
51+
sawyer (~> 0.8.0, >= 0.5.3)
52+
oga (3.3)
53+
ast
54+
ruby-ll (~> 2.1)
55+
open4 (1.3.4)
56+
public_suffix (4.0.6)
57+
rchardet (1.8.0)
58+
rexml (3.2.4)
59+
ruby-ll (2.1.2)
60+
ansi
61+
ast
62+
sawyer (0.8.2)
63+
addressable (>= 2.3.5)
64+
faraday (> 0.8, < 2.0)
65+
terminal-table (1.8.0)
66+
unicode-display_width (~> 1.1, >= 1.1.1)
67+
unicode-display_width (1.7.0)
68+
69+
PLATFORMS
70+
ruby
71+
72+
DEPENDENCIES
73+
danger
74+
danger-android_lint
75+
danger-kotlin_detekt
76+
77+
BUNDLED WITH
78+
2.1.4
Collapse file

‎detekt.gradle‎

Copy file name to clipboardExpand all lines: detekt.gradle
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ detekt {
44
toolVersion = "${versions.detekt}"
55
//input = files("src/main/kotlin")
66
config = files(buildscript.sourceFile.getParent().toString() + "/DEV/default-detekt-config.yml")
7-
87
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.