From 50f4a0a9d79ae459e97e1a6ac09ecc7afebef9af Mon Sep 17 00:00:00 2001 From: augustnagro Date: Sun, 27 Oct 2024 21:15:22 -0700 Subject: [PATCH] configure ci --- .github/dependabot.yml | 6 ---- .github/release-drafter.yml | 59 ----------------------------------- .github/workflows/ci.yml | 14 +++++---- .github/workflows/drafter.yml | 26 --------------- 4 files changed, 8 insertions(+), 97 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/drafter.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 120c689..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" \ No newline at end of file diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 6d9c0a2..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,59 +0,0 @@ -name-template: '$RESOLVED_VERSION' -tag-template: '$RESOLVED_VERSION' - -version-resolver: - major: - labels: - - 'major' - minor: - labels: - - 'minor' - patch: - labels: - - 'patch' - default: minor - -categories: - - title: 'Features' - label: 'enhancement' - - title: 'Bug Fixes' - label: 'bug' - -exclude-labels: - - 'skip' - -autolabeler: - - label: 'bug' - title: - - '/.*\[fix\].*/' - - label: 'patch' - title: - - '/.*\[fix\].*/' - - label: 'enhancement' - title: - - '/.*\[feat\].*/' - - label: 'minor' - title: - - '/.*\[feat\].*/' - - label: 'skip' - title: - - '/.*\[skip\].*/' - - label: 'major' - title: - - '/.*\[breaking\].*/' - -replacers: - - search: '/\[feat\]/g' - replace: '' - - search: '/\[fix\]/g' - replace: '' - - search: '/\[skip\]/g' - replace: '' - - search: '/\[breaking\]/g' - replace: '' - -template: | - # What's Changed - - $CHANGES - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1822d65..a6187c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,22 +1,24 @@ name: CI on: + push: + branches: ["master"] pull_request: - types: [ opened, reopened, synchronize ] + branches: ["master"] -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +permissions: + contents: read jobs: ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: coursier/cache-action@v6 - uses: actions/setup-java@v4 with: distribution: temurin - java-version: 11 + java-version: 17 check-latest: true + cache: 'sbt' - name: run tests - run: sbt 'clean;test' + run: sbt 'clean; scalafmtCheckAll; test' diff --git a/.github/workflows/drafter.yml b/.github/workflows/drafter.yml deleted file mode 100644 index bcbc1f7..0000000 --- a/.github/workflows/drafter.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Release Drafter - -on: - push: - branches: - - main - - pull_request: - types: [opened, reopened, synchronize] - -permissions: - contents: read - -jobs: - update_release_draft: - runs-on: ubuntu-latest - permissions: - # write permission is required to create a github release - contents: write - # write permission is required for autolabeler - # otherwise, read permission is required at least - pull-requests: write - steps: - - uses: release-drafter/release-drafter@v6.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}