Skip to content

Update gradle/gradle-build-action action to v2.12.0 #274

Update gradle/gradle-build-action action to v2.12.0

Update gradle/gradle-build-action action to v2.12.0 #274

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Binaryen
uses: jaxxstorm/action-install-gh-release@c5ead9a448b4660cf1e7866ee22e4dc56538031a # v1
with:
repo: WebAssembly/binaryen
tag: version_112
binaries-location: binaryen-version_112/bin
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
fetch-depth: 0
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # v1
- name: Download Java JDK
uses: typelevel/download-java@817e8c0d48dc2e88e155a8e4f69ba493bef621be # v2
id: download-java
with:
distribution: temurin
java-version: 11
- name: Setup Java JDK
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java.outputs.jdkFile }}
- name: Build & Test
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2
with:
arguments: build --info
- name: Upload Coverage Report
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Publish Test Results
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
if: always()
with:
name: test-results
path: '**/build/test-results/*/TEST-*.xml'
- name: Publish To Sonatype
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2
with:
arguments: publishAllPublicationsToMavenCentral