Skip to content

Commit 412430d

Browse files
committed
chore: add testIdea to ci
1 parent 7b2b21c commit 412430d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
jre: 11
6060
os: ubuntu-latest
6161
shfmt-version: v3.8.0
62+
- kind: idea
63+
jre: 11
64+
os: ubuntu-latest
6265
runs-on: ${{ matrix.os }}
6366
steps:
6467
- name: Checkout
@@ -91,6 +94,16 @@ jobs:
9194
- name: Test shfmt
9295
if: matrix.kind == 'shfmt'
9396
run: ./gradlew testShfmt
97+
- name: Test idea
98+
if: matrix.kind == 'idea'
99+
run: |
100+
download_link=$(curl https://data.services.jetbrains.com/products/releases\?code\=IIC\&latest\=true\&type\=release | jq -r '.IIC[0].downloads.linux.link')
101+
curl --location "$download_link" -o idea.tar.gz
102+
tar -xf idea.tar.gz
103+
cd idea-IC*
104+
export PATH=${PATH}:$(pwd)/bin
105+
cd ..
106+
./gradlew testIdea
94107
- name: junit result
95108
uses: mikepenz/action-junit-report@v5
96109
if: always() # always run even if the previous step fails

0 commit comments

Comments
 (0)