Skip to content

Commit

Permalink
Use Coursier cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
mijicd authored Jan 30, 2021
1 parent e4eb022 commit 826a66a
Showing 1 changed file with 5 additions and 41 deletions.
46 changes: 5 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: CI

on:
pull_request:
branches: ['*']
push:
branches: ['develop']
release:
Expand All @@ -22,14 +21,7 @@ jobs:
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v10
- name: Cache scala dependencies
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.m2
~/.cache
key: sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
uses: coursier/cache-action@v5
- name: Lint code
run: sbt fmtCheck fixCheck

Expand All @@ -50,14 +42,7 @@ jobs:
with:
java-version: ${{ matrix.java }}
- name: Cache scala dependencies
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.m2
~/.cache
key: sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
uses: coursier/cache-action@v5
- name: Compile benchmarks
run: sbt ++${{ matrix.scala }}! jmh:compile

Expand All @@ -82,14 +67,7 @@ jobs:
with:
node-version: '10'
- name: Cache scala dependencies
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.m2
~/.cache
key: sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
uses: coursier/cache-action@v5
- name: Run tests
run: sbt ++${{ matrix.scala }}! testJS

Expand All @@ -110,14 +88,7 @@ jobs:
with:
java-version: ${{ matrix.java }}
- name: Cache scala dependencies
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.m2
~/.cache
key: sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
uses: coursier/cache-action@v5
- name: Run tests
run: sbt ++${{ matrix.scala }}! testJVM

Expand All @@ -133,14 +104,7 @@ jobs:
- name: Setup Scala and Java
uses: olafurpg/setup-scala@v10
- name: Cache scala dependencies
uses: actions/cache@v2
with:
path: |
~/.ivy2/cache
~/.sbt
~/.m2
~/.cache
key: sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
uses: coursier/cache-action@v5
- name: Setup GPG
uses: olafurpg/setup-gpg@v3
- name: Release artifacts
Expand Down

0 comments on commit 826a66a

Please sign in to comment.