replace use of unmaintained setup-scala action (#148)

* replace use of unmaintained setup-scala scation

* try setting gha permissions
This commit is contained in:
PJ Fanning 2023-02-07 16:34:49 +01:00 committed by GitHub
parent bf0a9b3515
commit f358df1c86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 80 additions and 46 deletions

View file

@ -9,6 +9,8 @@ on:
tags: tags:
- v2.6.* - v2.6.*
permissions: {}
jobs: jobs:
check-binary-compatibility: check-binary-compatibility:
name: Check / Binary Compatibility name: Check / Binary Compatibility
@ -28,10 +30,11 @@ jobs:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 8 - name: Setup Java 8
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.8.0 distribution: temurin
java-version: 8
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0

View file

@ -3,6 +3,8 @@ name: Pull Requests
on: on:
pull_request: pull_request:
permissions: {}
concurrency: concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs. # Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-${{ github.ref }} group: ci-${{ github.ref }}
@ -19,10 +21,11 @@ jobs:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 8 - name: Setup Java 8
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.8.0 distribution: temurin
java-version: 8
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0
@ -47,10 +50,11 @@ jobs:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 8 - name: Setup Java 8
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.8.0 distribution: temurin
java-version: 8
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0

View file

@ -1,6 +1,6 @@
name: Scalafmt name: Scalafmt
permissions: read-all permissions: {}
on: on:
pull_request: pull_request:

View file

@ -5,6 +5,8 @@ on:
- cron: '0 6 * * 1' - cron: '0 6 * * 1'
workflow_dispatch: workflow_dispatch:
permissions: {}
jobs: jobs:
validate-links: validate-links:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -19,10 +21,11 @@ jobs:
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
git checkout scratch git checkout scratch
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0

View file

@ -5,6 +5,9 @@ on:
- cron: '0 2 * * 1,3,5' - cron: '0 2 * * 1,3,5'
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
concurrency: concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs. # Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-multi-node-${{ github.ref }} group: ci-multi-node-${{ github.ref }}
@ -40,10 +43,11 @@ jobs:
# Start 10 pods. At most 10 MultiJvmNode (akka.cluster.StressSpec is currently disabled). # Start 10 pods. At most 10 MultiJvmNode (akka.cluster.StressSpec is currently disabled).
./kubernetes/setup.sh 10 multi-node-test.hosts tcp ./kubernetes/setup.sh 10 multi-node-test.hosts tcp
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11.0-9 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0
@ -127,10 +131,11 @@ jobs:
# Start 10 pods. At most 10 MultiJvmNode (akka.cluster.StressSpec is currently disabled). # Start 10 pods. At most 10 MultiJvmNode (akka.cluster.StressSpec is currently disabled).
./kubernetes/setup.sh 10 multi-node-test.hosts udp ./kubernetes/setup.sh 10 multi-node-test.hosts udp
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11.0-9 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0

View file

@ -5,6 +5,8 @@ on:
- cron: "0 0 * * *" - cron: "0 0 * * *"
workflow_dispatch: workflow_dispatch:
permissions: {}
jobs: jobs:
pekko-cluster-metrics-sigar: pekko-cluster-metrics-sigar:
@ -18,10 +20,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0
@ -90,10 +93,11 @@ jobs:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0
@ -155,10 +159,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK ${{ matrix.jdkVersion }} - name: Setup Java ${{ matrix.java-version }}
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: ${{ matrix.jdkVersion }} distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0
@ -249,10 +254,11 @@ jobs:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0

View file

@ -43,10 +43,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Install Graphviz - name: Install Graphviz
run: |- run: |-

View file

@ -4,6 +4,9 @@ on:
push: push:
tags: ["*"] tags: ["*"]
permissions:
contents: read
jobs: jobs:
sbt: sbt:
name: sbt publish name: sbt publish
@ -15,10 +18,11 @@ jobs:
with: with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11.0-9 distribution: temurin
java-version: 11
- name: Publish - name: Publish
run: |- run: |-
sudo apt-get install graphviz sudo apt-get install graphviz

View file

@ -5,6 +5,7 @@ on:
- cron: "0 0 * * *" - cron: "0 0 * * *"
workflow_dispatch: workflow_dispatch:
permissions: {}
concurrency: concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs. # Only run once for latest commit per ref and cancel other (previous) runs.
@ -37,10 +38,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0

View file

@ -3,6 +3,8 @@ name: Compile Akka with Scala 3
on: on:
pull_request: pull_request:
permissions: {}
concurrency: concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs. # Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-scala3-${{ github.ref }} group: ci-scala3-${{ github.ref }}
@ -34,10 +36,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0

View file

@ -5,6 +5,8 @@ on:
- cron: "0 0 * * *" - cron: "0 0 * * *"
workflow_dispatch: workflow_dispatch:
permissions: {}
jobs: jobs:
akka-timing-sensitive-tests: akka-timing-sensitive-tests:
@ -18,10 +20,11 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up JDK 11 - name: Setup Java 11
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v3
with: with:
java-version: adopt@1.11 distribution: temurin
java-version: 11
- name: Cache Coursier cache - name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0 uses: coursier/cache-action@v6.4.0