Skip to content

Commit

Permalink
Merge pull request #242 from ckipp01/ci
Browse files Browse the repository at this point in the history
refactor(ci): switch from setup-scala to setup-java
  • Loading branch information
ckipp01 authored Nov 15, 2022
2 parents a4e09fe + b0452d8 commit 6ea38b3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,31 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [[email protected]]
java: [ '8' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- name: Set up JVM
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'sbt'

- run: git fetch --tags -f
- run:
# for git tests
git config --global user.email "[email protected]" && git config --global user.name "scalafmt"
- run: sbt plugin/scripted

formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
cache: 'sbt'

- run: ./bin/scalafmt --test
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Release
on:
push:
branches: [main]
branches:
- main
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: olafurpg/setup-gpg@v3
- run: git fetch --tags --unshallow -f || true
- name: Publish ${{ github.ref }}
run: sbt ci-release
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
cache: 'sbt'
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
Expand Down

0 comments on commit 6ea38b3

Please sign in to comment.