Skip to content

Commit

Permalink
Try add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelldi committed Nov 18, 2023
1 parent b74a4be commit e73e89d
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 49 deletions.
22 changes: 0 additions & 22 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

4 changes: 0 additions & 4 deletions .github/no-response.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps:
# - validate Gradle Wrapper,
# - run 'verifyPlugin' tasks,
# - 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:
workflow_dispatch:
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests)
push:
branches: [ develop.ra/cicd ]
# Trigger the workflow on any pull request
pull_request:
branches:
- develop

jobs:

# Prepare environment and build the plugin
build:
name: Build
runs-on: ubuntu-latest
steps:

# Check out Maven Plugins for Azure Services repository
- name: Fetch Maven Plugins for Azure Services
uses: actions/checkout@v4
with:
repository: microsoft/azure-maven-plugins
ref: endgame-202310
path: azure-maven-plugins

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4
with:
path: azure-tools-for-intellij

# Setup Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: |
8
17
# Build Maven Plugins for Azure Services library
- name: Build Maven Plugins for Azure Services
run: |
cd ${{ github.workspace }}/azure-maven-plugins
printenv JAVA_HOME_8_x64
echo "$JAVA_HOME_8_x64 ./mvnw clean install -f azure-toolkit-libs/pom.xml"
$JAVA_HOME_8_x64 ./mvnw clean install -f azure-toolkit-libs/pom.xml
23 changes: 0 additions & 23 deletions .github/workflows/no-response.yml

This file was deleted.

0 comments on commit e73e89d

Please sign in to comment.