Skip to content

Commit

Permalink
caching depenencies for Scala CI
Browse files Browse the repository at this point in the history
  • Loading branch information
realkaranvir committed Dec 8, 2024
1 parent cd6d737 commit c1800dd
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,33 @@ name: Scala CI

on:
push:
branches: [ master ]
branches: [karan]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build_and_test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run tests
run: sbt clean compile test
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache sbt dependencies
uses: actions/cache@v3
with:
path: |
~/.ivy2/cache
~/.sbt
~/.coursier
key: sbt-${{ runner.os }}-${{ hashFiles('**/*.sbt') }}
restore-keys: |
sbt-${{ runner.os }}-
- name: Run tests
run: sbt clean compile test

0 comments on commit c1800dd

Please sign in to comment.