Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Enable Coursier cache in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Jan 12, 2021
1 parent 5a73265 commit 8572df6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- uses: olafurpg/setup-scala@v10
- uses: coursier/cache-action@v5
- name: Lint
run: sbt scalafmtCheckAll "rules/scalafix --check"

- name: Test
run: sbt coverage +tests/test +rules/coverageReport

- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ jobs:
# Fetch all tags to help sbt-ci-release infer the snapshot version.
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
- uses: coursier/cache-action@v5
- uses: olafurpg/setup-gpg@v3

This comment has been minimized.

Copy link
@sideeffffect

sideeffffect Jan 12, 2021

Contributor

Btw, this line is no longer necessary since
https://github.com/olafurpg/sbt-ci-release/releases/tag/v1.5.5
/cc @liancheng

This comment has been minimized.

Copy link
@liancheng

liancheng Jan 12, 2021

Author Owner

Good to know, thanks!

- name: Test
run: sbt scalafmtCheck "rules/scalafix --check" +test
- name: Publish ${{ github.ref }}
run: sbt scalafmtCheck "rules/scalafix --check" +test ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: sbt ci-release

0 comments on commit 8572df6

Please sign in to comment.