Skip to content

Commit

Permalink
fix(ci): run install as sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vacxe committed Oct 18, 2024
1 parent e054208 commit 38a7ff7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,19 @@ jobs:
run: npm install -g danger

- name: Install Danger Kotlin
run: make install
run: sudo make install

- name: Run tests
run: ./gradlew danger-kotlin-library:test
run: sudo ./gradlew danger-kotlin-library:test

- name: Install Plugin Installer
run: ./gradlew danger-plugin-installer:publishToMavenLocal
run: sudo ./gradlew danger-plugin-installer:publishToMavenLocal

- name: Build and Install Sample Plugin
working-directory: ./danger-kotlin-sample-plugin
run: |
cd danger-kotlin-sample-plugin
gradle wrapper
./gradlew build
./gradlew installDangerPlugin
cd ..
sudo gradle wrapper
sudo ./gradlew build installDangerPlugin
- name: Run Danger-Kotlin
run: DEBUG='*' danger-kotlin ci --dangerfile Dangerfile_ci.df.kts
Expand Down

0 comments on commit 38a7ff7

Please sign in to comment.