Skip to content

Add new span modifier with lambda parameter #144

Add new span modifier with lambda parameter

Add new span modifier with lambda parameter #144

Workflow file for this run

name: ci
on:
push:
branches:
- "main"
tags:
- "v*"
pull_request:
branches:
- "*"
jobs:
validate-gradle-wrapper:
name: Validate Gradle Wrapper
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
test:
name: Test
runs-on: ubuntu-latest
needs: validate-gradle-wrapper
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup jdk
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: '17'
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Run UI tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
target: google_apis
profile: Galaxy Nexus
script: ./gradlew :grid:connectedDebugAndroidTest --stacktrace
heap-size: 2048M
release:
name: Release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') && (github.repository == 'cheonjaeung/gridlayout-compose') }}
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup jdk
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: '17'
- name: Publish to Maven Central
run: ./gradlew publish --stacktrace
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.CENTRAL_PORTAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
build-docs:
name: Build Documentation
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies for Building Documentation
run: |
python3 -m pip install --upgrade pip
python3 -m pip install mkdocs
python3 -m pip install mkdocs-material
- name: Build Documentation Site
run: mkdocs build
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./site
deploy-docs:
name: Deploy Documentation
runs-on: ubuntu-latest
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy Documentation Site
id: deployment
uses: actions/deploy-pages@v4