Skip to content

Merge pull request #28 from Jmorjsm/revert-16-main #38

Merge pull request #28 from Jmorjsm/revert-16-main

Merge pull request #28 from Jmorjsm/revert-16-main #38

Workflow file for this run

# GitHub Actions Workflow created for testing and preparing the plugin release in following steps:
# - validate Gradle Wrapper,
# - run 'test' and 'verifyPlugin' tasks,
# - run Qodana inspections,
# - run 'buildPlugin' task and prepare artifact for the further tests,
# - run 'runPluginVerifier' task,
# - create a draft release.
#
# Workflow is triggered on push and pull_request events.
#
# GitHub Actions reference: https://help.github.com/en/actions
#
## JBIJPPTPL
name: Build
on:
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests)
push:
branches: [main]
# Trigger the workflow on any pull request
pull_request:
jobs:
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum
# Run verifyPlugin, IntelliJ Plugin Verifier, and test Gradle tasks
# Build plugin and provide the artifact for the next workflow jobs
build:
name: Build
runs-on: ubuntu-latest
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/[email protected]
# Validate wrapper
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
# Setup Java 17 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 17
cache: gradle
- name: Build plugin
run: ./gradlew buildPlugin