Skip to content

Commit 47f28f6

Browse files
committed
Enable the verifier on the presubmits
1 parent 009a8ed commit 47f28f6

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/workflows/presubmit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
bot: [CHECK_BOT, DART_BOT, UNIT_TEST_BOT]
37+
bot: [CHECK_BOT, DART_BOT, UNIT_TEST_BOT, VERIFY_BOT]
3838
steps:
3939
- name: checkout
4040
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

.github/workflows/presubmit.yaml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: true
3434
matrix:
35-
bot: [CHECK_BOT, DART_BOT, UNIT_TEST_BOT]
35+
bot: [CHECK_BOT, DART_BOT, UNIT_TEST_BOT, VERIFY_BOT]
3636
steps:
3737
- name: checkout
3838
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3

tool/github.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,21 @@ elif [ "UNIT_TEST_BOT" = "$BOT" ] ; then
7575
# Run unit tests.
7676
./bin/plugin test --no-setup
7777

78-
else
78+
elif [ "VERIFY_BOT" = "$BOT" ] ; then
79+
80+
# Before running gradlew verifyPlugin
81+
echo "Checking permissions for /home/runner/"
82+
ls -ld /home/runner/
83+
echo "Creating .pluginVerifier/extracted-plugins directory if it doesn't exist..."
84+
mkdir -p /home/runner/.pluginVerifier
85+
touch /home/runner/.pluginVerifier/extracted-plugins
86+
echo "Checking permissions for /home/runner/.pluginVerifier"
87+
ls -ld /home/runner/.pluginVerifier
7988

89+
# Run the vefifier for this version
90+
./bin/plugin verify
91+
92+
else
8093
# Run the build.
8194
./bin/plugin make --channel=stable --only-version=$IDEA_VERSION --no-setup
8295

0 commit comments

Comments
 (0)