Skip to content

ci: run action linter on pushed to .github #53

ci: run action linter on pushed to .github

ci: run action linter on pushed to .github #53

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- main
workflow_call:
permissions: {}
jobs:
build:
name: Build
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Output SHA
uses: ./.github/actions/short-sha
id: short-sha
- name: Set plugin ver with SHA commit
run: |
sed -ri "s/^(versionSuffix=).*/\1sha-${SHA}/" gradle.properties || :
env:
SHA: ${{ steps.short-sha.outputs.SHA }}
- name: Set up JDK
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Build
run: ./gradlew jar
- name: Upload a jar
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: artifact
path: ./build/libs/
test:
name: Test
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Test
run: ./gradlew test