Skip to content

Commit

Permalink
Fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
plokhotnyuk committed Dec 27, 2024
1 parent 0218042 commit f8c45ab
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
Expand All @@ -25,14 +25,16 @@ jobs:
with:
fetch-depth: 0
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v13
uses: coursier/setup-action@v1
with:
apps: sbt
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Lint code
run: sbt fmtCheck fixCheck

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
fail-fast: false
Expand All @@ -47,6 +49,7 @@ jobs:
- uses: coursier/setup-action@v1
with:
jvm: ${{ matrix.java }}
apps: sbt
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Install Bohem GC
Expand All @@ -56,21 +59,23 @@ jobs:
run: sbt ++${{ matrix.scala }}! test${{ matrix.platform }}

ci:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [build,lint]
steps:
- run: echo "All checks passed"

publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 45
needs: [build,lint]
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3.0.0
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
- uses: coursier/setup-action@v1
with:
apps: sbt
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down

0 comments on commit f8c45ab

Please sign in to comment.