Skip to content

Set version to 0.1.2 #8

Set version to 0.1.2

Set version to 0.1.2 #8

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
tags:
- '*'
jobs:
test:
name: Test scalafix rules
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: temurin:17
apps: scala-cli:1.2.0
- name: Test rules
run: sbt "+test"
- name: Test outputs
run: |
tests=src/main/scala/test
for file in Example1.scala Example2.scala ; do
scala-cli run input/build.scala input/$tests/$file > input.out
scala-cli run output/build.scala output/$tests/$file > output.out
diff input.out output.out && echo "Test $file - ok" || exit 1
done
- name: Test circe-generic-extern tests
run: |
scala-cli test input
scala-cli test output
publish_release:
runs-on: [ubuntu-22.04]
needs: [test]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
steps:
- uses: coursier/setup-action@v1
with:
jvm: temurin:8
- uses: actions/checkout@v4
- name: Setup PGP Key
run: |
echo -n "$PGP_SECRET" | base64 --decode | gpg --batch --import
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
- name: Publish release
env:
PGP_PW: ${{ secrets.PGP_PW }}
SONATYPE_PW: ${{ secrets.MAVEN_PASSWORD }}
SONATYPE_USER: ${{ secrets.MAVEN_USER }}
run: sbt "+rules/publishSigned; sonatypeBundleRelease"