8000 Use `ubuntu-latest` in CI runners by kyri-petrou · Pull Request #9765 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use ubuntu-latest in CI runners #9765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ ((github.event_name != 'repository_dispatch') && (github.event.action != 'update-docs')) }}
steps:
Expand All @@ -30,13 +30,15 @@ jobs:
distribution: temurin
java-version: 17
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Lint code
run: sbt "++2.13; check; ++3.3; check"

publishLocal:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ ((github.event_name != 'repository_dispatch') && (github.event.action != 'update-docs')) }}
env:
Expand All @@ -56,6 +58,8 @@ jobs:
distribution: temurin
java-version: 11
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: publishLocal 2.12
Expand All @@ -73,20 +77,23 @@ jobs:
run: sbt --client shutdown

build-website:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
if: ${{ ((github.event_name != 'repository_dispatch') && (github.event.action != 'update-docs')) }}
steps:
- name: Checkout Current Branch
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Scala and Java
- name: Setup Java
uses: actions/setup-java@v4.7.0
with:
distribution: temurin
java-version: 17
check-latest: true

- name: Setup sbt
uses: sbt/setup-sbt@v1

- name: Install NodeJS
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -115,7 +122,7 @@ jobs:
run: find ./website/build -print

test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ ((github.event_name != 'repository_dispatch') && (github.event.action != 'update-docs')) }}
strategy:
Expand All @@ -133,6 +140,8 @@ jobs:
distribution: temurin
java-version: ${{ matrix.java }}
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Run tests
Expand Down Expand Up @@ -174,7 +183,7 @@ jobs:
overwrite: true

testJvms:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ ((github.event_name != 'repository_dispatch') && (github.event.action != 'update-docs')) }}
strategy:
Expand All @@ -191,6 +200,8 @@ jobs:
distribution: temurin
java-version: ${{ matrix.java }}
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Test on different JVM versions
Expand All @@ -205,7 +216,7 @@ jobs:
overwrite: true

testPlatforms:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 60
if: ${{ ((github.event_name != 'repository_dispatch') && (github.event.action != 'update-docs')) }}
strategy:
Expand All @@ -225,6 +236,8 @@ jobs:
distribution: temurin
java-version: ${{ matrix.java }}
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Set Swap Space
Expand All @@ -236,15 +249,15 @@ jobs:

ci:
if: always()
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [lint, publishLocal, build-website, test, testJvms, testPlatforms]
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 60
needs: [ci]
if: github.event_name != 'pull_request'
Expand All @@ -259,6 +272,8 @@ jobs:
distribution: temurin
java-version: 11
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Release
run: sbt -v ci-release
env:
Expand All @@ -271,7 +286,7 @@ jobs:
publish-website:
needs: [ci]
if: github.event_name != 'pull_request'
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
Expand Down
Loading
0