Skip to content

caching the same repository avoid reload multiple time on the same build #285

caching the same repository avoid reload multiple time on the same build

caching the same repository avoid reload multiple time on the same build #285

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
Spotless:
runs-on: ubuntu-latest
if: github.repository == 'jenkinsci/templating-engine-plugin'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: --no-daemon spotlessCheck
CodeNarc:
runs-on: ubuntu-latest
if: github.repository == 'jenkinsci/templating-engine-plugin'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: --no-daemon codenarc
- uses: actions/upload-artifact@v4
if: failure()
with:
name: codenarc-results
path: build/reports
MarkdownLint:
runs-on: ubuntu-latest
if: github.repository == 'jenkinsci/templating-engine-plugin'
container:
image: davidanson/markdownlint-cli2:0.4.0
options: --user root
steps:
- uses: actions/checkout@v2
- name: markdownlint-cli2
run: markdownlint-cli2
Vale:
runs-on: ubuntu-latest
if: github.repository == 'jenkinsci/templating-engine-plugin'
container:
image: jdkato/vale:v2.18.0
options: --user root
steps:
- uses: actions/checkout@v2
- name: vale
run: vale docs
Unit_Test:
runs-on: ubuntu-latest
if: github.repository == 'jenkinsci/templating-engine-plugin'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: --no-daemon test jacocoTestReport
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results
path: build/reports
Build_JPI:
runs-on: ubuntu-latest
if: github.repository == 'jenkinsci/templating-engine-plugin'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: --no-daemon jpi
- uses: actions/upload-artifact@v4
with:
name: jpi
path: build/libs/templating-engine.hpi