Skip to content

Commit

Permalink
Fix globstar handling. Fixes #5.
Browse files Browse the repository at this point in the history
  • Loading branch information
thepieterdc committed Apr 1, 2020
1 parent 996a2c6 commit 310fa97
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM gradle:jdk11

# Download the plugin verifier.
RUN curl -L --output /verifier.jar https://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/intellij/plugins/verifier-cli/1.222/verifier-cli-1.222-all.jar
RUN curl -L --output /verifier.jar https://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/intellij/plugins/verifier-cli/1.231/verifier-cli-1.231-all.jar

# Copy and compile the sources of the parser into a jar.
RUN mkdir /tmp/build-parser
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IntelliJ Plugin Verifier GitHub Action

[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-v1.1.0-undefined.svg?logo=github&logoColor=white&style=flat)](https://github.com/marketplace/actions/intellij-plugin-verifier)
[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-v1.1.1-undefined.svg?logo=github&logoColor=white&style=flat)](https://github.com/marketplace/actions/intellij-plugin-verifier)

Use GitHub Actions to verify the compatibility of your IntelliJ plugin against any version of IntelliJ IDEA.

Expand All @@ -11,7 +11,7 @@ Simply add the action to your workflow-file and specify the path to your plugin,
```yaml
steps:
- uses: actions/checkout@master
- uses: thepieterdc/intellij-plugin-verifier-action@v1.1.0
- uses: thepieterdc/intellij-plugin-verifier-action@v1.1.1
with:
plugin: '/path/to/plugin.zip'
versions: |
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
java-version: 11.x.x
- name: Build the plugin using Gradle
run: ./gradlew buildPlugin
- uses: thepieterdc/intellij-plugin-verifier-action@v1.1.0
- uses: thepieterdc/intellij-plugin-verifier-action@v1.1.1
with:
plugin: '/home/runner/work/demo-plugin/demo-plugin/build/distributions/demo-plugin-*'
versions: |
Expand Down
13 changes: 9 additions & 4 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,25 @@ java -cp "/parser.jar" parser.Main | while read -r line; do
sed -i "$ s+$+/ides/$dir +g" $directories

# Download the required IntelliJ version.
echo "Downloading $zipfile..."
curl -L --output "$zipfile" "$line"

# Extract the zip.
unzip -d "/ides/$dir" "$zipfile"
echo "Unzipping $dir..."
unzip -qq -d "/ides/$dir" "$zipfile"
done

# Reopen the created file to get the list of directories as a space-separated
# string.
ides=$(cat $directories)

# Write the plugin zips to a file.
for f in $(echo "$INPUT_PLUGIN"); do echo "$f" >> plugins.txt; done

# Execute the verifier.
echo "Running verification..."
echo "Running verifications..."
verification_log="/tmp/verification.log"
java -jar /verifier.jar check-plugin "$INPUT_PLUGIN" $ides 2>&1 > "$verification_log"
java -jar /verifier.jar check-plugin "@plugins.txt" $ides 2>&1 > "$verification_log"

# Output the log.
cat "$verification_log"
Expand All @@ -50,4 +55,4 @@ if egrep -q "^Plugin (.*) against .*: .* compatibility problems?$" "$verificatio
else
# Everything's fine.
exit 0
fi
fi

0 comments on commit 310fa97

Please sign in to comment.