Update plugin.xml #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2014-2020 Zephir Team | |
# | |
# This source file is subject the MIT license, that is bundled with | |
# this package in the file LICENSE, and is available through the | |
# world-wide-web at the following url: | |
# | |
# https://github.com/zephir-lang/idea-plugin/blob/master/LICENSE | |
name: build | |
on: | |
push: | |
branches: | |
- master | |
- development | |
pull_request: | |
jobs: | |
build: | |
# To prevent build a particular commit use | |
# git commit -m "......... [ci skip]" | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
name: Build Plugin | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- name: Set Up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Grant Execute Permission for Gradle | |
run: chmod +x gradlew | |
- name: Cache Gradle packages | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Displays All Dependencies | |
run: ./gradlew dependencies | |
- name: Bundle the Project as a Distribution | |
run: ./gradlew buildPlugin | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: intellij-zephir-distributions | |
path: build/distributions | |
- name: Runs the Unit Tests | |
run: ./gradlew test | |
- name: Validate Plugin | |
run: ./gradlew verifyPlugin | |
- name: Save Test Results | |
if: ${{ always() }} | |
run: | | |
mkdir -p ./tests-result | |
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ./tests-result/ \; | |
- name: Upload Tests Result | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: intellij-zephir-tests-result | |
path: tests-result | |
- name: Upload Tests Report | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: intellij-zephir-tests-reports | |
path: build/reports/tests | |
- name: Success Reporting | |
if: ${{ always() }} | |
run: git log --format=fuller -5 | |