Skip to content

Commit

Permalink
moves permisssion adjustment to job
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Nov 30, 2023
1 parent 666e62a commit 01b2ad3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/parallel-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: parallel-unit-tests
on:
pull_request:

env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"

jobs:
junit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ci_node_index:
- 0
- 1
- 2
- 3
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle
- name: Build
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
cache-read-only: false
arguments: compileJava compileTestJava -Dorg.gradle.parallel=true
5 changes: 2 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ on:
env:
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"

permissions:
checks: write

jobs:
unitTests:
runs-on:
group: "Besu Large Runners"
permissions:
checks: write
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down

0 comments on commit 01b2ad3

Please sign in to comment.