10000 Compose 1.2.1 by mpetuska · Pull Request #160 · mpetuska/kmdc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Compose 1.2.1 #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 77 additions & 32 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
name: Check
defaults:
run:
shell: bash

on:
push:
branches:
- master
pull_request:
branches:
- 'master'
workflow_dispatch:
workflow_call:

concurrency:
cancel-in-progress: true
group: check-${{ github.workflow }}-${{ github.head_ref || github.ref }}

env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"

jobs:
check:
name: Check on ubuntu-latest
lint:
name: Lint the code
runs-on: ubuntu-latest
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
steps:
- uses: actions/checkout@v3

Expand All @@ -28,55 +26,102 @@ jobs:
java-version: 11

- name: Restore Gradle cache
id: cache
uses: actions/cache@v3.2.3
id: cache-gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
~/.cache/yarn
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-

- name: Gradle Check
run: ./gradlew detektAll check -x detekt --scan
- name: Run detekt
run: ./gradlew detektAll

- name: Make artifact location URIs relative
if: ${{ always() }}
continue-on-error: true
run: |
cp ${{ github.workspace }}/build/reports/detekt/detekt.sarif ${{ github.workspace }}/detekt.sarif.json
ls '${{ github.workspace }}/build/reports/detekt/'
cp '${{ github.workspace }}/build/reports/detekt/detekt.sarif' '${{ github.workspace }}/detekt.sarif.json'
echo "$(
jq \
--arg github_workspace ${{ github.workspace }} \
jq --arg github_workspace ${{ github.workspace }} \
'. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \
${{ github.workspace }}/detekt.sarif.json
)" > ${{ github.workspace }}/detekt.sarif.json
'${{ github.workspace }}/detekt.sarif.json'
)" > '${{ github.workspace }}/detekt.sarif.json'

- uses: github/codeql-action/upload-sarif@v2
if: ${{ always() }}
with:
sarif_file: ${{ github.workspace }}/detekt.sarif.json
checkout_path: ${{ github.workspace }}

- name: Gradle Assemble
run: ./gradlew assemble --scan
check:
name: Check on ${{ matrix.os.runner }}
runs-on: ${{ matrix.os.runner }}
defaults:
run:
shell: ${{ matrix.os.shell }}
strategy:
fail-fast: false
matrix:
os:
- runner: ubuntu-latest
shell: bash
separator: '/'
# - runner: macos-latest
# shell: bash
# separator: '/'
# - runner: windows-latest
# shell: msys2 {0}
# separator: '\'
steps:
- uses: msys2/setup-msys2@v2
if: ${{ runner.os == 'Windows' }}
with:
release: false
msystem: MINGW64
path-type: inherit
update: true
install: >-
curl
mingw-w64-x86_64-curl

- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11

- name: Gradle Check Sandbox
working-directory: sandbox
run: ./gradlew check --scan
- name: Restore Gradle cache
id: cache-gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-

- name: Gradle Compile
run: ./gradlew compile assemble --scan

- name: Gradle Check
run: ./gradlew check -x detekt -x detektAll --scan

- name: Gradle Assemble Sandbox
working-directory: sandbox
run: ./gradlew assemble --scan
- name: Gradle Test Local Publishing
run: ./gradlew publishToLocal --scan

- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: reports-${{ runner.os }}
path: |
**/build/reports
detekt.sarif.json
**${{ matrix.os.separator }}build${{ matrix.os.separator }}reports
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
java-version: 11
- name: Restore Gradle cache
id: cache
uses: actions/cache@v3.2.3
uses: actions/cache@v3.0.11
with:
path: |
~/.gradle/caches
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR

on:
pull_request:
branches:
- master

env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"

concurrency:
cancel-in-progress: true
group: pr-${{ github.workflow }}-${{ github.head_ref || github.ref }}

jobs:
check:
uses: ./.github/workflows/check.yml
Loading
0