Skip to content

Update coursier-cache, coursier-core to 2.1.10 #71

Update coursier-cache, coursier-core to 2.1.10

Update coursier-cache, coursier-core to 2.1.10 #71

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags:
- "v*"
pull_request:
jobs:
test:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: temurin:17
- name: Test
run: ./mill __.compile && ./mill __.test
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: 8
apps: scalafmt:3.1.1
- run: scalafmt --check
publish:
needs: [test, format]
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: temurin:17
- run: .github/scripts/gpg-setup.sh
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
- name: Release
run: ./mill -i publishSonatype __.publishArtifacts
env:
PGP_PASSWORD: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}