update workflows

This commit is contained in:
marhali 2022-07-30 13:38:08 +02:00
parent 4271a5c64b
commit 31fe81c4f4
3 changed files with 17 additions and 15 deletions

View File

@ -35,7 +35,7 @@ jobs:
# Check out current repository # Check out current repository
- name: Fetch Sources - name: Fetch Sources
uses: actions/checkout@v2.4.0 uses: actions/checkout@v3
# Validate wrapper # Validate wrapper
- name: Gradle Wrapper Validation - name: Gradle Wrapper Validation
@ -43,11 +43,10 @@ jobs:
# Setup Java 11 environment for the next steps # Setup Java 11 environment for the next steps
- name: Setup Java - name: Setup Java
uses: actions/setup-java@v2 uses: actions/setup-java@v3
with: with:
distribution: zulu distribution: zulu
java-version: 11 java-version: 11
cache: gradle
# Set environment variables # Set environment variables
- name: Export Properties - name: Export Properties
@ -76,14 +75,14 @@ jobs:
# Collect Tests Result of failed tests # Collect Tests Result of failed tests
- name: Collect Tests Result - name: Collect Tests Result
if: ${{ failure() }} if: ${{ failure() }}
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: tests-result name: tests-result
path: ${{ github.workspace }}/build/reports/tests path: ${{ github.workspace }}/build/reports/tests
# Cache Plugin Verifier IDEs # Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache - name: Setup Plugin Verifier IDEs Cache
uses: actions/cache@v2.1.7 uses: actions/cache@v3
with: with:
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }}
@ -95,14 +94,14 @@ jobs:
# Collect Plugin Verifier Result # Collect Plugin Verifier Result
- name: Collect Plugin Verifier Result - name: Collect Plugin Verifier Result
if: ${{ always() }} if: ${{ always() }}
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: pluginVerifier-result name: pluginVerifier-result
path: ${{ github.workspace }}/build/reports/pluginVerifier path: ${{ github.workspace }}/build/reports/pluginVerifier
# Run Qodana inspections # Run Qodana inspections
- name: Qodana - Code Inspection - name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v4.2.5 uses: JetBrains/qodana-action@v2022.1.1
# Prepare plugin archive content for creating artifact # Prepare plugin archive content for creating artifact
- name: Prepare Plugin Artifact - name: Prepare Plugin Artifact
@ -117,7 +116,7 @@ jobs:
# Store already-built plugin as an artifact for downloading # Store already-built plugin as an artifact for downloading
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2.2.4 uses: actions/upload-artifact@v3
with: with:
name: ${{ steps.artifact.outputs.filename }} name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/* path: ./build/distributions/content/*/*
@ -129,11 +128,13 @@ jobs:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
# Check out current repository # Check out current repository
- name: Fetch Sources - name: Fetch Sources
uses: actions/checkout@v2.4.0 uses: actions/checkout@v3
# Remove old release drafts by using the curl request for the available releases with draft flag # Remove old release drafts by using the curl request for the available releases with draft flag
- name: Remove Old Release Drafts - name: Remove Old Release Drafts

View File

@ -12,21 +12,23 @@ jobs:
release: release:
name: Publish Plugin name: Publish Plugin
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps: steps:
# Check out current repository # Check out current repository
- name: Fetch Sources - name: Fetch Sources
uses: actions/checkout@v2.4.0 uses: actions/checkout@v3
with: with:
ref: ${{ github.event.release.tag_name }} ref: ${{ github.event.release.tag_name }}
# Setup Java 11 environment for the next steps # Setup Java 11 environment for the next steps
- name: Setup Java - name: Setup Java
uses: actions/setup-java@v2 uses: actions/setup-java@v3
with: with:
distribution: zulu distribution: zulu
java-version: 11 java-version: 11
cache: gradle
# Set environment variables # Set environment variables
- name: Export Properties - name: Export Properties

View File

@ -33,15 +33,14 @@ jobs:
# Check out current repository # Check out current repository
- name: Fetch Sources - name: Fetch Sources
uses: actions/checkout@v2.4.0 uses: actions/checkout@v3
# Setup Java 11 environment for the next steps # Setup Java 11 environment for the next steps
- name: Setup Java - name: Setup Java
uses: actions/setup-java@v2 uses: actions/setup-java@v3
with: with:
distribution: zulu distribution: zulu
java-version: 11 java-version: 11
cache: gradle
# Run IDEA prepared for UI testing # Run IDEA prepared for UI testing
- name: Run IDE - name: Run IDE