Skip to content

Make it a seperate job #1

Make it a seperate job

Make it a seperate job #1

Workflow file for this run

name: 'Generic: Test'
on:
workflow_call:
inputs:
plugin_name:
description: 'Plugin name'
required: true
type: string
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Run unit tests
uses: gradle/gradle-build-action@v2
with:
arguments: build
env:
GITHUB_VERSION: pr${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Artifact output
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}
path: build/libs/${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}.jar
link:
- runs-on: ubuntu-latest

Check failure on line 43 in .github/workflows/generic.test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/generic.test.yml

Invalid workflow file

You have an error in your yaml syntax on line 43
- permissions:
- contents: read
- pull-requests: write
- steps:
- uses: actions/checkout@v3
- name: Comment artifact links on PR
uses: benwoo1110/artifact-comment-action@test
with:
github_token: ${{ secrets.GITHUB_TOKEN }}