Skip to content

Commit

Permalink
use ubuntu-latest with sbt/setup-sbt@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Oct 13, 2024
1 parent c1704d7 commit 7876785
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
lint:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout current branch
Expand All @@ -27,13 +27,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 check

website:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout current branch
Expand All @@ -44,13 +46,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: Check Document Generation
run: sbt docs/compileDocs

test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
Expand All @@ -69,20 +73,22 @@ 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
run: sbt test${{ matrix.platform }}_${{ matrix.scala }}

ci:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [lint, website, test]
steps:
- name: Aggregate of lint, and all tests
run: echo "ci passed"

publish:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [ci]
if: github.event_name != 'pull_request'
Expand All @@ -97,6 +103,8 @@ 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: Release artifacts
Expand Down

0 comments on commit 7876785

Please sign in to comment.