diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..68df32be --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,8 @@ +template: | + ## What’s Changed + + $CHANGES +categories: + - title: "🔧 Dependency updates" + labels: + - "dependencies" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..0f916cf8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI +on: + pull_request: + push: + workflow_dispatch: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 22 + - name: Coursier cache + uses: coursier/cache-action@v6 + - name: Build and test + run: | + sbt -v -Dfile.encoding=UTF-8 +test + rm -rf "$HOME/.ivy2/local" || true + find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true + find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true + find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true + find $HOME/.sbt -name "*.lock" -delete || true + - name: Run codacy-coverage-reporter + uses: codacy/codacy-coverage-reporter-action@v1 + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: target/scala-2.13/coverage-report/cobertura.xml \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000..17fdb961 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,14 @@ +name: Release Drafter + +on: + push: + branches: + - master + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml deleted file mode 100644 index 82aaeb9d..00000000 --- a/.github/workflows/run-tests.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: build -on: [push, pull_request] -jobs: - build: - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-java@v1 - with: - java-version: 22 - repo-token: ${{ secrets.ADMIN_GITHUB_TOKEN }} - - run: sbt test \ No newline at end of file diff --git a/.github/workflows/scala-steward.yml b/.github/workflows/scala-steward.yml index 8ea9c0f1..841d1e08 100644 --- a/.github/workflows/scala-steward.yml +++ b/.github/workflows/scala-steward.yml @@ -1,7 +1,8 @@ -# This workflow will launch at 00:00 every Sunday +# This workflow will launch at 00:00 every day +name: Scala Steward on: schedule: - - cron: '0 0 * * 0' + - cron: '0 0 * * *' workflow_dispatch: jobs: scala-steward: